##// END OF EJS Templates
formatter: reorder code that builds template mapping...
Yuya Nishihara -
r31805:dca9b692 default
parent child Browse files
Show More
@@ -347,16 +347,16 b' class templateformatter(baseformatter):'
347 347 # TODO: add support for filectx. probably each template keyword or
348 348 # function will have to declare dependent resources. e.g.
349 349 # @templatekeyword(..., requires=('ctx',))
350 props = {}
350 351 if 'ctx' in self._item:
351 props = templatekw.keywords.copy()
352 # explicitly-defined fields precede templatekw
353 props.update(self._item)
352 props.update(templatekw.keywords)
353 # explicitly-defined fields precede templatekw
354 props.update(self._item)
355 if 'ctx' in self._item:
354 356 # but template resources must be always available
355 357 props['templ'] = self._t
356 358 props['repo'] = props['ctx'].repo()
357 359 props['revcache'] = {}
358 else:
359 props = self._item
360 360 g = self._t(self._topic, ui=self._ui, cache=self._cache, **props)
361 361 self._out.write(templater.stringify(g))
362 362
General Comments 0
You need to be logged in to leave comments. Login now