mercurial/templater.py
changeset 25662 ff5172c83002
parent 25660 328739ea70c3
parent 25638 6047b60cdd09
child 25695 ce3d4b858420
--- 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()