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