changeset 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 46c0ca1ef7e1
children 4085c9fafb8e
files mercurial/templater.py tests/test-command-template.t
diffstat 2 files changed, 1 insertions(+), 10 deletions(-) [+]
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
--- a/tests/test-command-template.t	Tue Apr 09 09:40:40 2013 -0700
+++ b/tests/test-command-template.t	Tue Apr 09 21:38:08 2013 -0700
@@ -1360,12 +1360,6 @@
   $ hg log -l1 --template '{date|age}\n'
   7 years from now
 
-Filter with int function argument:
-
-  $ hg log --template '{fill(author, 20)}\n' -r 0
-  User Name
-  <user@hostname>
-
 Error on syntax:
 
   $ echo 'x = "f' >> t