mercurial/templater.py
changeset 46121 c000eff2c635
parent 45957 89a2afe31e82
child 46492 5272542196cc
equal deleted inserted replaced
46120:9261f6c1d39b 46121:c000eff2c635
   449         return context._load(exp[1])
   449         return context._load(exp[1])
   450     raise error.ParseError(_(b"expected template specifier"))
   450     raise error.ParseError(_(b"expected template specifier"))
   451 
   451 
   452 
   452 
   453 def _runrecursivesymbol(context, mapping, key):
   453 def _runrecursivesymbol(context, mapping, key):
   454     raise error.Abort(_(b"recursive reference '%s' in template") % key)
   454     raise error.InputError(_(b"recursive reference '%s' in template") % key)
   455 
   455 
   456 
   456 
   457 def buildtemplate(exp, context):
   457 def buildtemplate(exp, context):
   458     ctmpl = [compileexp(e, context, methods) for e in exp[1:]]
   458     ctmpl = [compileexp(e, context, methods) for e in exp[1:]]
   459     return (templateutil.runtemplate, ctmpl)
   459     return (templateutil.runtemplate, ctmpl)