mercurial/repair.py
changeset 22818 d7b114493315
parent 22057 445472225ccd
child 23835 aa4a1672583e
equal deleted inserted replaced
22817:e4eb4bfc3616 22818:d7b114493315
    97 
    97 
    98     # For a set s, max(parents(s) - s) is the same as max(heads(::s - s)), but
    98     # For a set s, max(parents(s) - s) is the same as max(heads(::s - s)), but
    99     # is much faster
    99     # is much faster
   100     newbmtarget = repo.revs('max(parents(%ld) - (%ld))', tostrip, tostrip)
   100     newbmtarget = repo.revs('max(parents(%ld) - (%ld))', tostrip, tostrip)
   101     if newbmtarget:
   101     if newbmtarget:
   102         newbmtarget = repo[newbmtarget[0]].node()
   102         newbmtarget = repo[newbmtarget.first()].node()
   103     else:
   103     else:
   104         newbmtarget = '.'
   104         newbmtarget = '.'
   105 
   105 
   106     bm = repo._bookmarks
   106     bm = repo._bookmarks
   107     updatebm = []
   107     updatebm = []