##// END OF EJS Templates
bookmarks: remove redundant check for newline...
Kevin Bullock -
r17814:f88ca484 default
parent child Browse files
Show More
@@ -790,8 +790,6 b' def bookmark(ui, repo, mark=None, rev=No'
790 790 cur = repo.changectx('.').node()
791 791
792 792 def checkformat(mark):
793 if "\n" in mark:
794 raise util.Abort(_("bookmark name cannot contain newlines"))
795 793 mark = mark.strip()
796 794 if not mark:
797 795 raise util.Abort(_("bookmark names cannot consist entirely of "
@@ -214,12 +214,12 b' reject bookmark name with newline'
214 214
215 215 $ hg bookmark '
216 216 > '
217 abort: bookmark name cannot contain newlines
217 abort: bookmark names cannot consist entirely of whitespace
218 218 [255]
219 219
220 220 $ hg bookmark -m Z '
221 221 > '
222 abort: bookmark name cannot contain newlines
222 abort: bookmark names cannot consist entirely of whitespace
223 223 [255]
224 224
225 225 bookmark with existing name
General Comments 0
You need to be logged in to leave comments. Login now