author | David Soria Parra <dsp@php.net> |
Wed, 16 Feb 2011 01:28:42 +0100 | |
changeset 13415 | 25b5694b9337 |
parent 13414 | a0e49e129151 |
child 13416 | 5431b3f3e52e |
--- a/mercurial/commands.py Wed Feb 16 10:02:24 2011 +0100 +++ b/mercurial/commands.py Wed Feb 16 01:28:42 2011 +0100 @@ -4036,6 +4036,8 @@ if not rev: rev = node + # if we defined a bookmark, we have to remember the original bookmark name + brev = rev rev = cmdutil.revsingle(repo, rev, rev).rev() if check and clean: @@ -4058,7 +4060,7 @@ ret = hg.update(repo, rev) if repo.ui.configbool('bookmarks', 'track.current'): - bookmarks.setcurrent(repo, rev) + bookmarks.setcurrent(repo, brev) return ret