# HG changeset patch # User Siddharth Agarwal # Date 1384568937 28800 # Node ID 2880b45636ca2443b9bce3dec862648021b580ce # Parent 85d9200ba9f0e73549ecbb57da5ad1271ed11f86 bmstore.write: use unsetcurrent instead of setcurrent with None diff -r 85d9200ba9f0 -r 2880b45636ca mercurial/bookmarks.py --- 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: