[issue2494] fatal error for log template filter 'escape' on keyword 'branches'

Brian Armstrong bugs at mercurial.selenic.com
Fri Nov 12 22:59:26 UTC 2010


New submission from Brian Armstrong <kf7huf at gmail.com>:

Version: 1.7
OS: Ubuntu 10.04 LTS

Summary:
When using the 'escape' filter on the keyword 'branches' in the log template
a fatal error is encountered.

Steps to Reproduce:
In an existing repository, run
hg log --template '{branches|escape}\n'


This effects anyone attempting to use a template to create an xml-like
output. You can have '>' and '<' as part of the name for your named
branches. Why anyone would do this, I cannot imagine, but it is possible.
Branches would need to be escapable to keep the output valid XML.

Backtrack attached.

----------
files: backtrace
messages: 14390
nosy: killermonk
priority: bug
status: unread
title: fatal error for log template filter 'escape' on keyword 'branches'
topic: 1.7, hg, log, named branches

____________________________________________________
Mercurial issue tracker <bugs at mercurial.selenic.com>
<http://mercurial.selenic.com/bts/issue2494>
____________________________________________________
-------------- next part --------------
A non-text attachment was scrubbed...
Name: backtrace
Type: application/octet-stream
Size: 4187 bytes
Desc: not available
URL: <http://selenic.com/pipermail/mercurial-devel/attachments/20101112/302d4351/attachment.obj>


More information about the Mercurial-devel mailing list