hgext/keyword.py
changeset 32837 50586a0a946f
parent 32375 04baab18d60a
child 32935 69d1c3ea0d6f
--- 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())