[Bug 4349] New: Log templates with labels containing special characters error "parse error at 20:"
mercurial-bugs at selenic.com
mercurial-bugs at selenic.com
Mon Aug 25 00:41:07 CDT 2014
http://bz.selenic.com/show_bug.cgi?id=4349
Priority: urgent
Bug ID: 4349
CC: mercurial-devel at selenic.com
Assignee: bugzilla at selenic.com
Summary: Log templates with labels containing special
characters error "parse error at 20:"
Severity: bug
Classification: Unclassified
OS: All
Reporter: wes.turner at gmail.com
Hardware: PC
Status: UNCONFIRMED
Version: unspecified
Component: Mercurial
Product: Mercurial
Including a label() for `desc` when `desc` contains certain characters causes
'hg log' to error.
Steps to recreate::
# create a repo
mkdir repo; cd repo; echo 'Text' >> text
hg add text
hg commit -m "ENH: Add {git,hg} {i[s]} to log -n1 [and diffstat] (closes
#3)"
# works
hg log -l1 --template "{label('custom.desc', node)}\n"
# errors
hg log -l1 --template "{label('custom.desc', desc)}\n"
Error Message:
hg: parse error at 20: syntax error
--
You are receiving this mail because:
You are on the CC list for the bug.
More information about the Mercurial-devel
mailing list