changeset 18884 | 0615b22da148 |
parent 18747 | f5db3092790f |
child 18889 | 8c64c4af21a4 |
--- a/mercurial/templater.py Mon Apr 08 09:44:26 2013 -0700 +++ b/mercurial/templater.py Sun Apr 07 23:25:50 2013 -0700 @@ -66,7 +66,10 @@ break pos += 1 sym = program[s:pos] - yield ('symbol', sym, s) + try: + yield('string', str(int(sym)), s) + except ValueError: + yield ('symbol', sym, s) pos -= 1 elif c == '}': pos += 1