Show More
@@ -136,6 +136,9 b' def bookmark(ui, repo, mark=None, rev=No' | |||
|
136 | 136 | if "\n" in mark: |
|
137 | 137 | raise util.Abort(_("bookmark name cannot contain newlines")) |
|
138 | 138 | mark = mark.strip() |
|
139 | if not mark: | |
|
140 | raise util.Abort(_("bookmark names cannot consist entirely of " | |
|
141 | "whitespace")) | |
|
139 | 142 | if mark in marks and not force: |
|
140 | 143 | raise util.Abort(_("a bookmark of the same name already exists")) |
|
141 | 144 | if ((mark in repo.branchtags() or mark == repo.dirstate.branch()) |
General Comments 0
You need to be logged in to leave comments.
Login now