diff -r 20de1ace07a9 -r ff5172c83002 mercurial/templater.py --- a/mercurial/templater.py Tue Jun 23 22:20:01 2015 -0700 +++ b/mercurial/templater.py Wed Jun 24 13:41:27 2015 -0500 @@ -47,7 +47,7 @@ s = pos while pos < end: # find closing quote d = program[pos] - if decode and d == '\\': # skip over escaped characters + if d == '\\': # skip over escaped characters pos += 2 continue if d == c: @@ -450,7 +450,7 @@ # i18n: "revset" is a keyword raise error.ParseError(_("revset expects one or more arguments")) - raw = args[0][1] + raw = stringify(args[0][0](context, mapping, args[0][1])) ctx = mapping['ctx'] repo = ctx.repo()