Fix corrupted releases, revisions, and directories in the storage
Some may be fixed by bruteforcing known issues (eg. missing newline) to get the right hash; others will need to be reimported (assuming the origin still exists)
Migrated from T3552 (view on Phabricator)