# HG changeset patch # User Bryan O'Sullivan # Date 2013-04-10 22:05:06 # Node ID 4085c9fafb8e6f1b68c8f9d4d549304d948e6e5a # Parent ed676ed67a5c94d20c33175823df48cd5d7c1d65 # Parent 74ea61318ea8196e8eb0c1210120a513f10d3c81 merge diff --git a/mercurial/templater.py b/mercurial/templater.py --- a/mercurial/templater.py +++ b/mercurial/templater.py @@ -66,10 +66,7 @@ def tokenizer(data): 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 diff --git a/tests/test-command-template.t b/tests/test-command-template.t --- a/tests/test-command-template.t +++ b/tests/test-command-template.t @@ -1360,12 +1360,6 @@ Age filter: $ 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 - - Error on syntax: $ echo 'x = "f' >> t