bmstore.write: use unsetcurrent instead of setcurrent with None
authorSiddharth Agarwal <sid0@fb.com>
Fri, 15 Nov 2013 18:28:57 -0800
changeset 20098 2880b45636ca
parent 20097 85d9200ba9f0
child 20099 6284b0b16033
bmstore.write: use unsetcurrent instead of setcurrent with None
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: