Loops over all commits and tries to resolve them in VCS, then asks to delete any that aren't reachable.
Only works in git for now.
Differential D10246
Adding repository/prune command to remove orphaned commits from phabricator bluehawk on Aug 12 2014, 9:41 PM. Authored by Tags None Referenced Files
Subscribers
Details
Loops over all commits and tries to resolve them in VCS, then asks to delete any that aren't reachable. Only works in git for now. Orphan some commits (delete a branch, or force rewind a branch), then run prune.
Diff Detail
Event TimelineComment Actions Showing 173 orphaned commits, pruning them, then showing 0. The commits are now gone from git, but not from phabricator. Phabricator doesn't handle the case of commits disappearing very well. Most of the commit data is still there, but when it tries to fetch the parents of the commit it explodes: Running prune: ... After running that, viewing commits results in a 404 as expected. Couple notes:
Comment Actions This is obsoleted by the introduction of commit "reachability", bin/repository mark-reachable, and other related changes. |