Joel Rosdahl  committed d892211

bookmarks: Require new bookmark name when renaming

  • Participants
  • Parent commits 8b81d1e
  • Branches default

Comments (0)

Files changed (1)

File hgext/

             raise util.Abort(_("a bookmark of this name does not exist"))
         if mark in marks and not force:
             raise util.Abort(_("a bookmark of the same name already exists"))
+        if mark is None:
+            raise util.Abort(_("new bookmark name required"))
         marks[mark] = marks[move]
         del marks[move]
         write(repo, marks)