diff mercurial/templater.py @ 18893:74ea61318ea8

templater: back out 0615b22da148, it breaks schemes ({1})
author Brendan Cully <brendan@kublai.com>
date Tue, 09 Apr 2013 21:38:08 -0700
parents 8c64c4af21a4
children 3cdb6f2f6789
line wrap: on
line diff
--- a/mercurial/templater.py	Tue Apr 09 09:40:40 2013 -0700
+++ b/mercurial/templater.py	Tue Apr 09 21:38:08 2013 -0700
@@ -66,10 +66,7 @@
                     break
                 pos += 1
             sym = program[s:pos]
-            try:
-                yield ('string', str(int(sym)), s)
-            except ValueError:
-                yield ('symbol', sym, s)
+            yield ('symbol', sym, s)
             pos -= 1
         elif c == '}':
             pos += 1