##// 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 cur = repo.changectx('.').node()
790 cur = repo.changectx('.').node()
791
791
792 def checkformat(mark):
792 def checkformat(mark):
793 if "\n" in mark:
794 raise util.Abort(_("bookmark name cannot contain newlines"))
795 mark = mark.strip()
793 mark = mark.strip()
796 if not mark:
794 if not mark:
797 raise util.Abort(_("bookmark names cannot consist entirely of "
795 raise util.Abort(_("bookmark names cannot consist entirely of "
@@ -214,12 +214,12 b' reject bookmark name with newline'
214
214
215 $ hg bookmark '
215 $ hg bookmark '
216 > '
216 > '
217 abort: bookmark name cannot contain newlines
217 abort: bookmark names cannot consist entirely of whitespace
218 [255]
218 [255]
219
219
220 $ hg bookmark -m Z '
220 $ hg bookmark -m Z '
221 > '
221 > '
222 abort: bookmark name cannot contain newlines
222 abort: bookmark names cannot consist entirely of whitespace
223 [255]
223 [255]
224
224
225 bookmark with existing name
225 bookmark with existing name
General Comments 0
You need to be logged in to leave comments. Login now