diff -r 1d461ee26e1b -r 1987ed32efca mercurial/templater.py --- a/mercurial/templater.py Sat Feb 13 23:54:24 2016 +0900 +++ b/mercurial/templater.py Sun Feb 14 15:42:49 2016 +0900 @@ -210,7 +210,7 @@ def gettemplate(exp, context): """Compile given template tree or load named template from map file; returns (func, data) pair""" - if exp[0] == 'template': + if exp[0] in ('template', 'string'): return compileexp(exp, context, methods) if exp[0] == 'symbol': # unlike runsymbol(), here 'symbol' is always taken as template name