Show More
@@ -98,8 +98,8 b' def bookmark(ui, repo, mark=None, rev=No' | |||||
98 | return |
|
98 | return | |
99 |
|
99 | |||
100 | if mark != None: |
|
100 | if mark != None: | |
101 | if mark.strip().count("\n") > 0: |
|
101 | if "\n" in mark: | |
102 |
raise |
|
102 | raise util.Abort(_("bookmark name cannot contain newlines")) | |
103 | if mark in marks and not force: |
|
103 | if mark in marks and not force: | |
104 | raise util.Abort(_("a bookmark of the same name already exists")) |
|
104 | raise util.Abort(_("a bookmark of the same name already exists")) | |
105 | if ((mark in repo.branchtags() or mark == repo.dirstate.branch()) |
|
105 | if ((mark in repo.branchtags() or mark == repo.dirstate.branch()) |
General Comments 0
You need to be logged in to leave comments.
Login now