changeset 20098:2880b45636ca

bmstore.write: use unsetcurrent instead of setcurrent with None
author Siddharth Agarwal <sid0@fb.com>
date Fri, 15 Nov 2013 18:28:57 -0800
parents 85d9200ba9f0
children 6284b0b16033
files mercurial/bookmarks.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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: