Mercurial > public > mercurial-scm > hg-stable
diff mercurial/debugcommands.py @ 35473:f1c54d003327
templater: move repo, ui and cache to per-engine resources
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Thu, 21 Dec 2017 22:05:30 +0900 |
parents | 3bb1a647ab42 |
children | 5880318624c9 |
line wrap: on
line diff
--- 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)