# HG changeset patch # User Siddharth Agarwal # Date 2013-11-16 02:31:02 # Node ID 6284b0b160333d737bf65bb4bb387e0b905d4d12 # Parent 2880b45636ca2443b9bce3dec862648021b580ce strip: use bookmarks.unsetcurrent instead of setcurrent with None diff --git a/hgext/strip.py b/hgext/strip.py --- a/hgext/strip.py +++ b/hgext/strip.py @@ -209,7 +209,7 @@ def stripcmd(ui, repo, *revs, **opts): 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)