Mercurial > hg
comparison mercurial/ui.py @ 25471:7298da81f5a9 stable
templater: do not preprocess template string in "if" expression (issue4714)
The problem was spotted at 5ab28a2e9962, that says "this patch invokes it
with "strtoken='rawstring'" in "_evalifliteral()", because "t" is the result
of "arg" evaluation and it should be "string-escape"-ed if "arg" is "string"
expression." This workaround is no longer valid since 890845af1ac2 introduced
strict parsing of '\{'.
Instead, we should interpret bare token as "string" or "rawstring" template.
This is what buildmap() does at parsing phase.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Mon, 08 Jun 2015 18:14:22 +0900 |
parents | 09049042ab99 |
children | bd625cd4e5e7 |
comparison
equal
deleted
inserted
replaced
25460:bd4bcfa48c9e | 25471:7298da81f5a9 |
---|