mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 07:17:55 +03:00
repair: use node to track post-strip bookmark target
Revision numbers are unstable when non-consecutive revs are stripped.
This commit is contained in:
parent
a53e549921
commit
b170ca8911
@ -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 = '.'
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user