diff -r 7f6b8ec691e3 -r f97a0bcfd7a1 mercurial/commands.py --- 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: