[Bug 4733] New: Template escaping inside pad() is broken

mercurial-bugs at selenic.com mercurial-bugs at selenic.com
Wed Jun 24 17:36:39 CDT 2015


          Priority: normal
            Bug ID: 4733
                CC: mercurial-devel at selenic.com, yuya at tcha.org
          Assignee: bugzilla at selenic.com
           Summary: Template escaping inside pad() is broken
          Severity: bug
    Classification: Unclassified
                OS: Mac OS
          Reporter: durham at fb.com
          Hardware: PC
            Status: UNCONFIRMED
           Version: default branch
         Component: Mercurial
           Product: Mercurial

Commit 576d6c74784b changed the handling of the pad() template argument. It
seems to have broken nested template escaping.

$ hg up 576d6c74784b^
$ hg log -r . -T "{pad('FOO {files % \'{file}\'}', 10)}\n"
FOO some/file/paths

$ hg up 576d6c74784b
$ hg log -r . -T "{pad('FOO {files % \'{file}\'}', 10)}\n"
hg: parse error at 13: 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