diff mercurial/commands.py @ 13623:0e217d479c16

merge with stable
author Benoit Boissinot <benoit.boissinot@ens-lyon.org>
date Sun, 13 Mar 2011 15:59:50 +0100
parents 63ab6b0ccedc 8ee4b00ddfd8
children 595dba23d337
line wrap: on
line diff
--- a/mercurial/commands.py	Sun Mar 13 08:50:06 2011 -0500
+++ b/mercurial/commands.py	Sun Mar 13 15:59:50 2011 +0100
@@ -509,9 +509,9 @@
         if mark is None:
             raise util.Abort(_("new bookmark name required"))
         marks[mark] = marks[rename]
-        del marks[rename]
         if repo._bookmarkcurrent == rename:
             bookmarks.setcurrent(repo, mark)
+        del marks[rename]
         bookmarks.write(repo)
         return