mercurial/commands.py
branchstable
changeset 18122 730b769fb634
parent 17984 b74361cf7c0a
child 18133 7f5a0eba3768
equal deleted inserted replaced
18077:777084ac8416 18122:730b769fb634
  4286     if node:
  4286     if node:
  4287         node = scmutil.revsingle(repo, node).node()
  4287         node = scmutil.revsingle(repo, node).node()
  4288 
  4288 
  4289     if not node and repo._bookmarkcurrent:
  4289     if not node and repo._bookmarkcurrent:
  4290         bmheads = repo.bookmarkheads(repo._bookmarkcurrent)
  4290         bmheads = repo.bookmarkheads(repo._bookmarkcurrent)
  4291         curhead = repo[repo._bookmarkcurrent]
  4291         curhead = repo[repo._bookmarkcurrent].node()
  4292         if len(bmheads) == 2:
  4292         if len(bmheads) == 2:
  4293             if curhead == bmheads[0]:
  4293             if curhead == bmheads[0]:
  4294                 node = bmheads[1]
  4294                 node = bmheads[1]
  4295             else:
  4295             else:
  4296                 node = bmheads[0]
  4296                 node = bmheads[0]