Skip to content
Snippets Groups Projects
Commit 1b51638b authored by Matt Mackall's avatar Matt Mackall
Browse files

repair: use node to track post-strip bookmark target

Revision numbers are unstable when non-consecutive revs are stripped.
parent 9fcea3f4
No related merge requests found
......@@ -114,7 +114,7 @@
newbmtarget = repo.revs('sort(heads((::%ld) - (%ld)), -rev)',
tostrip, tostrip)
if newbmtarget:
newbmtarget = newbmtarget[0]
newbmtarget = repo[newbmtarget[0]].node()
else:
newbmtarget = '.'
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment