hgext/keyword.py
changeset 35888 c8e2d6ed1f9e
parent 35001 3fbc30f7b9f0
child 36607 c6061cadb400
--- a/hgext/keyword.py	Sun Jan 21 12:48:39 2018 +0900
+++ b/hgext/keyword.py	Sun Jan 21 13:03:03 2018 +0900
@@ -101,6 +101,7 @@
     extensions,
     filelog,
     localrepo,
+    logcmdutil,
     match,
     patch,
     pathutil,
@@ -254,7 +255,7 @@
         '''Replaces keywords in data with expanded template.'''
         def kwsub(mobj):
             kw = mobj.group(1)
-            ct = cmdutil.makelogtemplater(self.ui, self.repo,
+            ct = logcmdutil.maketemplater(self.ui, self.repo,
                                           self.templates[kw])
             self.ui.pushbuffer()
             ct.show(ctx, root=self.repo.root, file=path)