diff -r 32c278eb876f -r f1c54d003327 mercurial/debugcommands.py --- a/mercurial/debugcommands.py Thu Dec 21 21:29:06 2017 +0900 +++ b/mercurial/debugcommands.py Thu Dec 21 22:05:30 2017 +0900 @@ -2361,8 +2361,8 @@ ui.note(("* expanded:\n"), templater.prettyformat(newtree), '\n') if revs is None: - t = formatter.maketemplater(ui, tmpl) - props['ui'] = ui + tres = formatter.templateresources(ui, repo) + t = formatter.maketemplater(ui, tmpl, resources=tres) ui.write(t.render(props)) else: displayer = cmdutil.makelogtemplater(ui, repo, tmpl)