[issue84] tag command doesn't check tags for embedded newlines

Benoit Boissinot bboissin at gmail.com
Tue Nov 29 18:17:08 UTC 2005


On 11/29/05, Bryan O'Sullivan <mercurial-bugs at selenic.com> wrote:
>
> New submission from Bryan O'Sullivan <bos at serpentine.com>:
>
> The tag command should either forbid embedded \r and \n characters, or escape
> them so that they can be unescaped by localrepo.tags.  Right now, it does
> nothing, so a command like this will corrupt the .hgtags file:
>
> hg tag 'foo
> bar'

patch that disallow '\n' and '\r' is attached,

regards,

Benoit
-------------- next part --------------
A non-text attachment was scrubbed...
Name: export.diff
Type: text/x-patch
Size: 1547 bytes
Desc: not available
URL: <http://lists.mercurial-scm.org/pipermail/mercurial/attachments/20051129/09f07583/attachment-0001.bin>


More information about the Mercurial mailing list