hgext/color.py
changeset 20670 0084fcd5d7e2
parent 20455 a2c08adbb86e
parent 20661 7e627fe63e5e
child 20992 05086b56b564
--- a/hgext/color.py	Mon Mar 10 15:00:41 2014 -0500
+++ b/hgext/color.py	Tue Mar 11 16:19:08 2014 -0500
@@ -393,9 +393,7 @@
     if isinstance(repo, str):
         return thing
 
-    label = templater.stringify(args[0][0](context, mapping, args[0][1]))
-    label = templater.runtemplate(context, mapping,
-                                  templater.compiletemplate(label, context))
+    label = templater._evalifliteral(args[0], context, mapping)
 
     thing = templater.stringify(thing)
     label = templater.stringify(label)