diff mercurial/debugcommands.py @ 36988:317382151ac3

templater: rename .render(mapping) to .renderdefault(mapping) (API) I'm going to add templ.render(t, mapping) and templ.generate(t, mapping) in place of stringify(templ(t, **mapping)) and templ(t, **mapping) respectively. .. api:: The ``render(mapping)`` method of the templater has been renamed to ``renderdefault(mapping)``.
author Yuya Nishihara <yuya@tcha.org>
date Sat, 17 Mar 2018 11:23:04 +0900
parents efc4fb344c05
children 143219fc2620
line wrap: on
line diff
--- a/mercurial/debugcommands.py	Sat Mar 17 15:22:14 2018 +0900
+++ b/mercurial/debugcommands.py	Sat Mar 17 11:23:04 2018 +0900
@@ -2455,7 +2455,7 @@
     if revs is None:
         tres = formatter.templateresources(ui, repo)
         t = formatter.maketemplater(ui, tmpl, resources=tres)
-        ui.write(t.render(props))
+        ui.write(t.renderdefault(props))
     else:
         displayer = logcmdutil.maketemplater(ui, repo, tmpl)
         for r in revs: