mercurial/commands.py
changeset 28954 f97a0bcfd7a1
parent 28912 867d6ba2353d
child 28955 78759f78a44e
--- a/mercurial/commands.py	Sun Apr 03 23:18:30 2016 +0900
+++ b/mercurial/commands.py	Sun Apr 03 23:26:48 2016 +0900
@@ -2770,7 +2770,7 @@
             # template found, check if it is working
             err = None
             try:
-                templater.templater(m)
+                templater.templater.frommapfile(m)
             except Exception as inst:
                 err = inst
                 p = None
@@ -3681,7 +3681,7 @@
     mapfile = None
     if revs is None:
         k = 'debugtemplate'
-        t = templater.templater(mapfile)
+        t = templater.templater()
         t.cache[k] = tmpl
         ui.write(templater.stringify(t(k, **props)))
     else: