diff mercurial/cmdutil.py @ 20066:64b4f0cd7336 stable

templater: fix escaping in nested string literals (issue4102) Before the templater got extended for nested expressions, it made sense to decode string escapes across the whole string. Now we do it on a piece by piece basis.
author Matt Mackall <mpm@selenic.com>
date Mon, 18 Nov 2013 14:02:26 -0500
parents b7f76db06dc0
children 6d4fda48b4e3
line wrap: on
line diff
--- a/mercurial/cmdutil.py	Thu Nov 07 20:36:26 2013 -0800
+++ b/mercurial/cmdutil.py	Mon Nov 18 14:02:26 2013 -0500
@@ -940,9 +940,7 @@
 
     tmpl = opts.get('template')
     style = None
-    if tmpl:
-        tmpl = templater.parsestring(tmpl, quoted=False)
-    else:
+    if not tmpl:
         style = opts.get('style')
 
     # ui settings