--- a/mercurial/bookmarks.py Fri Nov 15 18:06:01 2013 -0800 +++ b/mercurial/bookmarks.py Fri Nov 15 18:28:57 2013 -0800 @@ -58,7 +58,7 @@ ''' repo = self._repo if repo._bookmarkcurrent not in self: - setcurrent(repo, None) + unsetcurrent(repo) wlock = repo.wlock() try: