# HG changeset patch # User Matt Mackall # Date 2012-10-17 20:37:25 # Node ID 1b51638bf44af908281ad2b533aa63bdd42a5a85 # Parent 9fcea3f47a3a1dd937e1fa53e8f5bc9c397aaa70 repair: use node to track post-strip bookmark target Revision numbers are unstable when non-consecutive revs are stripped. diff --git a/mercurial/repair.py b/mercurial/repair.py --- a/mercurial/repair.py +++ b/mercurial/repair.py @@ -114,7 +114,7 @@ def strip(ui, repo, nodelist, backup="al newbmtarget = repo.revs('sort(heads((::%ld) - (%ld)), -rev)', tostrip, tostrip) if newbmtarget: - newbmtarget = newbmtarget[0] + newbmtarget = repo[newbmtarget[0]].node() else: newbmtarget = '.'