merge with stable
authorMatt Mackall <mpm@selenic.com>
Fri, 20 Sep 2013 11:47:03 -0500
changeset 19763 ea35caf324bb
parent 19762 e0666aaa1382 (current diff)
parent 19751 478f3379768a (diff)
child 19765 521c373ff134
merge with stable
hgext/mq.py
--- a/hgext/mq.py	Fri Sep 06 13:30:58 2013 +0400
+++ b/hgext/mq.py	Fri Sep 20 11:47:03 2013 -0500
@@ -63,7 +63,7 @@
 from mercurial.node import bin, hex, short, nullid, nullrev
 from mercurial.lock import release
 from mercurial import commands, cmdutil, hg, scmutil, util, revset
-from mercurial import repair, extensions, error, phases
+from mercurial import repair, extensions, error, phases, bookmarks
 from mercurial import patch as patchmod
 from mercurial import localrepo
 from mercurial import subrepo
@@ -3077,6 +3077,8 @@
             wlock.release()
 
     if opts.get('bookmark'):
+        if mark == repo._bookmarkcurrent:
+            bookmarks.setcurrent(repo, None)
         del marks[mark]
         marks.write()
         ui.write(_("bookmark '%s' deleted\n") % mark)