[issue3125] Branch name with colon ":" allowed

Fabian Kreutz bugs at mercurial.selenic.com
Thu Nov 24 05:16:07 CST 2011


New submission from Fabian Kreutz <fabian.kreutz at qvantel.com>:

The branch subcommand allows creating branches with a colon (":") inside, 
although that is invalid.
Such a branch cannot be addressed e.g. in "update", as first matches against 
revision intervals  and fails with an unhelpful error message.

It says clearly in "hg help revision" that a colon is not allowed in branch 
and tag names, so the "hg branch" subcommand should abort instead of creating 
that branch.

Proposed patch is attached.

----------
files: no_colon_in_branch_tag.diff
messages: 18159
nosy: fabianhg
priority: feature
status: unread
title: Branch name with colon ":" allowed

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue3125>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: no_colon_in_branch_tag.diff
Type: application/octet-stream
Size: 1057 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20111124/a37f1d58/attachment.obj>


More information about the Mercurial-devel mailing list