mercurial/commands.py
changeset 17807 b11d181b87ba
parent 17806 dc7010ed0101
child 17808 f74217289c0a
equal deleted inserted replaced
17806:dc7010ed0101 17807:b11d181b87ba
  5846     if rev is None or rev == '':
  5846     if rev is None or rev == '':
  5847         rev = node
  5847         rev = node
  5848 
  5848 
  5849     # with no argument, we also move the current bookmark, if any
  5849     # with no argument, we also move the current bookmark, if any
  5850     movemarkfrom = None
  5850     movemarkfrom = None
  5851     if rev is None or node == '':
  5851     if rev is None:
  5852         movemarkfrom = repo['.'].node()
  5852         movemarkfrom = repo['.'].node()
  5853 
  5853 
  5854     # if we defined a bookmark, we have to remember the original bookmark name
  5854     # if we defined a bookmark, we have to remember the original bookmark name
  5855     brev = rev
  5855     brev = rev
  5856     rev = scmutil.revsingle(repo, rev, rev).rev()
  5856     rev = scmutil.revsingle(repo, rev, rev).rev()