templater: drop \ when handling escaped {
authorMatt Mackall <mpm@selenic.com>
Mon, 05 Apr 2010 15:25:08 -0500
changeset 10855 62216faed067
parent 10854 4036634560d6
child 10856 b07bd417115b
templater: drop \ when handling escaped {
mercurial/templater.py
--- a/mercurial/templater.py	Mon Apr 05 15:25:08 2010 -0500
+++ b/mercurial/templater.py	Mon Apr 05 15:25:08 2010 -0500
@@ -121,7 +121,7 @@
                 break
             if n > 0 and tmpl[n - 1] == '\\':
                 # escaped
-                parsed.append((None, tmpl[pos:n + 1]))
+                parsed.append((None, tmpl[pos:n - 1] + "{"))
                 pos = n + 1
                 continue
             if n > pos: