changeset 20099:6284b0b16033

strip: use bookmarks.unsetcurrent instead of setcurrent with None
author Siddharth Agarwal <sid0@fb.com>
date Fri, 15 Nov 2013 18:31:02 -0800
parents 2880b45636ca
children 0f01d0692bc5
files hgext/strip.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/strip.py	Fri Nov 15 18:28:57 2013 -0800
+++ b/hgext/strip.py	Fri Nov 15 18:31:02 2013 -0800
@@ -209,7 +209,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)