mercurial/commands.py
changeset 28955 78759f78a44e
parent 28954 f97a0bcfd7a1
child 28961 2e58dc022caa
--- a/mercurial/commands.py	Sun Apr 03 23:26:48 2016 +0900
+++ b/mercurial/commands.py	Sun Apr 10 17:23:09 2016 +0900
@@ -46,6 +46,7 @@
     exchange,
     extensions,
     fileset,
+    formatter,
     graphmod,
     hbisect,
     help,
@@ -3681,8 +3682,7 @@
     mapfile = None
     if revs is None:
         k = 'debugtemplate'
-        t = templater.templater()
-        t.cache[k] = tmpl
+        t = formatter.maketemplater(ui, k, tmpl)
         ui.write(templater.stringify(t(k, **props)))
     else:
         displayer = cmdutil.changeset_templater(ui, repo, None, opts, tmpl,