##// END OF EJS Templates
log: do not invoke templatekw.showobsfate() as a function...
Yuya Nishihara -
r36534:69477bac default
parent child Browse files
Show More
@@ -278,7 +278,12 b' class changesetprinter(object):'
278 self._showpatch(ctx)
278 self._showpatch(ctx)
279
279
280 def _showobsfate(self, ctx):
280 def _showobsfate(self, ctx):
281 obsfate = templatekw.showobsfate(repo=self.repo, ctx=ctx, ui=self.ui)
281 # TODO: do not depend on templater
282 tres = formatter.templateresources(self.repo.ui, self.repo)
283 t = formatter.maketemplater(self.repo.ui, '{join(obsfate, "\n")}',
284 defaults=templatekw.keywords,
285 resources=tres)
286 obsfate = t.render({'ctx': ctx, 'revcache': {}}).splitlines()
282
287
283 if obsfate:
288 if obsfate:
284 for obsfateline in obsfate:
289 for obsfateline in obsfate:
General Comments 0
You need to be logged in to leave comments. Login now