Page MenuHomePhabricator

Add "bin/repository mark-reachable" for fixing commit reachability flags
ClosedPublic

Authored by epriestley on Jun 16 2016, 4:04 PM.
Tags
None
Referenced Files
Unknown Object (File)
Fri, Apr 12, 4:16 AM
Unknown Object (File)
Fri, Apr 12, 4:16 AM
Unknown Object (File)
Mon, Apr 8, 3:11 AM
Unknown Object (File)
Sat, Apr 6, 3:14 AM
Unknown Object (File)
Fri, Mar 29, 12:43 PM
Unknown Object (File)
Tue, Mar 26, 5:31 AM
Unknown Object (File)
Mon, Mar 25, 7:10 PM
Unknown Object (File)
Mon, Mar 25, 6:17 PM
Subscribers
None

Details

Summary

Ref T9028. This corrects the reachability of existing commits in a repository.

In particular, it can be used to mark deleted commits as unreachable.

Test Plan
  • Ran it on a bad repository, with bad args, etc.
  • Ran it on a clean repo, got no changes.
  • Marked a reachable commit as unreachable, ran script, got it marked reachable.
  • Started deleting tags and branches from the local working copy while running the script, saw greater parts of the repository get marked unreachable.
  • Pulled repository again, everything automatically revived.

Diff Detail

Repository
rP Phabricator
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

epriestley retitled this revision from to Add "bin/repository mark-reachable" for fixing commit reachability flags.
epriestley updated this object.
epriestley edited the test plan for this revision. (Show Details)
epriestley added a reviewer: chad.
chad edited edge metadata.
This revision is now accepted and ready to land.Jun 16 2016, 4:29 PM
This revision was automatically updated to reflect the committed changes.