mercurial/commands.py
changeset 13623 0e217d479c16
parent 13608 63ab6b0ccedc
parent 13620 8ee4b00ddfd8
child 13639 595dba23d337
--- 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