##// END OF EJS Templates
bookmarks: Require new bookmark name when renaming
Joel Rosdahl -
r7254:d892211d default
parent child Browse files
Show More
@@ -81,6 +81,8 def bookmark(ui, repo, mark=None, rev=No
81 81 raise util.Abort(_("a bookmark of this name does not exist"))
82 82 if mark in marks and not force:
83 83 raise util.Abort(_("a bookmark of the same name already exists"))
84 if mark is None:
85 raise util.Abort(_("new bookmark name required"))
84 86 marks[mark] = marks[move]
85 87 del marks[move]
86 88 write(repo, marks)
General Comments 0
You need to be logged in to leave comments. Login now