--- a/hgext/keyword.py Wed Jun 14 23:56:58 2017 -0400
+++ b/hgext/keyword.py Sat Apr 22 18:42:03 2017 +0900
@@ -239,8 +239,8 @@
'''Replaces keywords in data with expanded template.'''
def kwsub(mobj):
kw = mobj.group(1)
- ct = cmdutil.changeset_templater(self.ui, self.repo, False, None,
- self.templates[kw], '', False)
+ ct = cmdutil.makelogtemplater(self.ui, self.repo,
+ self.templates[kw])
self.ui.pushbuffer()
ct.show(ctx, root=self.repo.root, file=path)
ekw = templatefilters.firstline(self.ui.popbuffer())