Escaping characters for hg update?

Masklinn masklinn at masklinn.net
Sun Nov 18 17:52:50 UTC 2012


On 2012-11-18, at 18:14 , v wrote:

> I'm able to create branch names with commas, spaces, colons, and other
> non-alpha characters. However, I don't seem able to update to them.
> 
> hg up "a a"
> hg: parse error at 2: invalid token
> 
> hg up "a,a"
> hg: parse error: can't use a list in this context
> 
> hg up "a:a"
> abort: unknown revision 'a'!
> 
> Should these characters be somehow escaped?

The first two work without issues for me:

> hg up "a a"                                     
1 files updated, 0 files merged, 0 files removed, 0 files unresolved
> hg up "a,a"                                     
1 files updated, 0 files merged, 0 files removed, 0 files unresolved

and the third one simply isn't accepted in the first place:

> hg branch "a:a"                                 
abort: ':' cannot be used in a name

What version of mercurial are you using? And are you using weird plugins
which may break things?



More information about the Mercurial mailing list