Patchwork [2,of,4] bmstore.write: use unsetcurrent instead of setcurrent with None

login
register
mail settings
Submitter Siddharth Agarwal
Date Nov. 16, 2013, 3:18 a.m.
Message ID <fce8d603fd5ea5524ade.1384571892@dev1091.prn1.facebook.com>
Download mbox | patch
Permalink /patch/2971/
State Accepted
Commit 2880b45636ca2443b9bce3dec862648021b580ce
Headers show

Comments

Siddharth Agarwal - Nov. 16, 2013, 3:18 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1384568937 28800
#      Fri Nov 15 18:28:57 2013 -0800
# Node ID fce8d603fd5ea5524ade340e5e7f599aaf9cda46
# Parent  8392350894bd06146590e7db0f9cc87c249587ef
bmstore.write: use unsetcurrent instead of setcurrent with None

Patch

diff --git a/mercurial/bookmarks.py b/mercurial/bookmarks.py
--- a/mercurial/bookmarks.py
+++ b/mercurial/bookmarks.py
@@ -58,7 +58,7 @@ 
         '''
         repo = self._repo
         if repo._bookmarkcurrent not in self:
-            setcurrent(repo, None)
+            unsetcurrent(repo)
 
         wlock = repo.wlock()
         try: