Patchwork [3,of,4] strip: use bookmarks.unsetcurrent instead of setcurrent with None

login
register
mail settings
Submitter Siddharth Agarwal
Date Nov. 16, 2013, 3:18 a.m.
Message ID <da43a40374316cb92dc3.1384571893@dev1091.prn1.facebook.com>
Download mbox | patch
Permalink /patch/2974/
State Accepted
Commit 6284b0b160333d737bf65bb4bb387e0b905d4d12
Headers show

Comments

Siddharth Agarwal - Nov. 16, 2013, 3:18 a.m.
# HG changeset patch
# User Siddharth Agarwal <sid0@fb.com>
# Date 1384569062 28800
#      Fri Nov 15 18:31:02 2013 -0800
# Node ID da43a40374316cb92dc3d50aeb2eff02ba3325ad
# Parent  fce8d603fd5ea5524ade340e5e7f599aaf9cda46
strip: use bookmarks.unsetcurrent instead of setcurrent with None

Patch

diff --git a/hgext/strip.py b/hgext/strip.py
--- a/hgext/strip.py
+++ b/hgext/strip.py
@@ -207,7 +207,7 @@ 
 
     if opts.get('bookmark'):
         if mark == repo._bookmarkcurrent:
-            bookmarks.setcurrent(repo, None)
+            bookmarks.unsetcurrent(repo)
         del marks[mark]
         marks.write()
         ui.write(_("bookmark '%s' deleted\n") % mark)