diff -r 6b52963ced73 -r 41bef17e6ad8 mercurial/commands.py --- a/mercurial/commands.py Mon Feb 27 18:23:18 2012 +0100 +++ b/mercurial/commands.py Tue Feb 28 01:07:55 2012 +0200 @@ -5701,7 +5701,7 @@ # with no argument, we also move the current bookmark, if any movemarkfrom = None - if node is None or node == '': + if rev is None or node == '': movemarkfrom = repo['.'].node() # if we defined a bookmark, we have to remember the original bookmark name