Mercurial > hg
diff tests/test-bookmarks.t @ 13425:0fe36c347c00
bookmarks: forbid \0 \r \n : in bookmark names (BC)
We restrict : to 1. make it easer to convert bookmarks to git branches,
2. use : later for a syntax to push a local bookmark to a remote bookmark
of a different name. \0, \n, \r are fobbidden they are used to separate
bookmarks in the bookmark file.
This change breaks backward compatbility as ':' was an allowed character in
previous versions.
author | David Soria Parra <dsp@php.net> |
---|---|
date | Wed, 16 Feb 2011 18:36:45 +0100 |
parents | 5431b3f3e52e |
children | 97b69883e929 |
line wrap: on
line diff
--- a/tests/test-bookmarks.t Wed Feb 16 04:36:36 2011 +0100 +++ b/tests/test-bookmarks.t Wed Feb 16 18:36:45 2011 +0100 @@ -212,3 +212,10 @@ $ hg bookmark ' ' abort: bookmark names cannot consist entirely of whitespace [255] + +invalid bookmark + + $ hg bookmark 'foo:bar' + abort: bookmark 'foo:bar' contains illegal character + [255] +