changeset 28344 | ac371d4c007f |
parent 28343 | a6c2310b3827 |
child 28345 | d81437c91a26 |
--- a/mercurial/templater.py Sun Feb 14 12:42:25 2016 +0900 +++ b/mercurial/templater.py Sun Feb 14 12:48:14 2016 +0900 @@ -221,9 +221,10 @@ return thing def evalinteger(context, mapping, arg, err): + v = evalfuncarg(context, mapping, arg) try: - return int(stringify(arg[0](context, mapping, arg[1]))) - except ValueError: + return int(v) + except (TypeError, ValueError): raise error.ParseError(err) def runinteger(context, mapping, data):