branch | stable |
changeset 11704 | 18c47562d331 |
parent 11641 | ead7550f1aab |
child 11705 | e95bacedae12 |
child 11994 | 31dde4c3bb83 |
--- a/hgext/bookmarks.py Thu Jul 22 21:43:45 2010 +0200 +++ b/hgext/bookmarks.py Sat Jul 24 11:20:21 2010 +0300 @@ -136,6 +136,9 @@ if "\n" in mark: raise util.Abort(_("bookmark name cannot contain newlines")) mark = mark.strip() + if not mark: + raise util.Abort(_("bookmark names cannot consist entirely of " + "whitespace")) if mark in marks and not force: raise util.Abort(_("a bookmark of the same name already exists")) if ((mark in repo.branchtags() or mark == repo.dirstate.branch())