##// 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 b' def bookmark(ui, repo, mark=None, rev=No'
81 raise util.Abort(_("a bookmark of this name does not exist"))
81 raise util.Abort(_("a bookmark of this name does not exist"))
82 if mark in marks and not force:
82 if mark in marks and not force:
83 raise util.Abort(_("a bookmark of the same name already exists"))
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 marks[mark] = marks[move]
86 marks[mark] = marks[move]
85 del marks[move]
87 del marks[move]
86 write(repo, marks)
88 write(repo, marks)
General Comments 0
You need to be logged in to leave comments. Login now