mercurial/commands.py
changeset 18133 7f5a0eba3768
parent 18075 2c1fc483efa4
parent 18122 730b769fb634
child 18143 242d2f4ec01c
equal deleted inserted replaced
18132:db25bf1dc828 18133:7f5a0eba3768
  4358     if node:
  4358     if node:
  4359         node = scmutil.revsingle(repo, node).node()
  4359         node = scmutil.revsingle(repo, node).node()
  4360 
  4360 
  4361     if not node and repo._bookmarkcurrent:
  4361     if not node and repo._bookmarkcurrent:
  4362         bmheads = repo.bookmarkheads(repo._bookmarkcurrent)
  4362         bmheads = repo.bookmarkheads(repo._bookmarkcurrent)
  4363         curhead = repo[repo._bookmarkcurrent]
  4363         curhead = repo[repo._bookmarkcurrent].node()
  4364         if len(bmheads) == 2:
  4364         if len(bmheads) == 2:
  4365             if curhead == bmheads[0]:
  4365             if curhead == bmheads[0]:
  4366                 node = bmheads[1]
  4366                 node = bmheads[1]
  4367             else:
  4367             else:
  4368                 node = bmheads[0]
  4368                 node = bmheads[0]