repair: use node to track post-strip bookmark target

Revision numbers are unstable when non-consecutive revs are stripped.
This commit is contained in:
Matt Mackall 2012-10-17 15:37:25 -05:00
parent a53e549921
commit b170ca8911

View File

@ -114,7 +114,7 @@ def strip(ui, repo, nodelist, backup="all", topic='backup'):
newbmtarget = repo.revs('sort(heads((::%ld) - (%ld)), -rev)',
tostrip, tostrip)
if newbmtarget:
newbmtarget = newbmtarget[0]
newbmtarget = repo[newbmtarget[0]].node()
else:
newbmtarget = '.'