diff -r 317382151ac3 -r de117f579431 mercurial/formatter.py --- a/mercurial/formatter.py Sat Mar 17 11:23:04 2018 +0900 +++ b/mercurial/formatter.py Fri Mar 16 21:24:12 2018 +0900 @@ -401,9 +401,7 @@ if 'ctx' in item or 'fctx' in item: # but template resources must be always available props['revcache'] = {} - props = pycompat.strkwargs(props) - g = self._t(ref, **props) - self._out.write(templateutil.stringify(g)) + self._out.write(self._t.render(ref, props)) def end(self): baseformatter.end(self)