mercurial/repair.py
changeset 17796 1b51638bf44a
parent 17410 7c865f30e2b8
child 17922 7f5dab94e48c
--- a/mercurial/repair.py	Wed Oct 17 17:32:01 2012 +0200
+++ b/mercurial/repair.py	Wed Oct 17 15:37:25 2012 -0500
@@ -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 = '.'