hgext/notify.py
changeset 35928 c8e2d6ed1f9e
parent 35633 a981ab2a1b4c
child 35993 386c1e45e671
--- a/hgext/notify.py	Sun Jan 21 12:48:39 2018 +0900
+++ b/hgext/notify.py	Sun Jan 21 13:03:03 2018 +0900
@@ -142,8 +142,8 @@
 
 from mercurial.i18n import _
 from mercurial import (
-    cmdutil,
     error,
+    logcmdutil,
     mail,
     patch,
     registrar,
@@ -257,9 +257,9 @@
             mapfile = self.ui.config('notify', 'style')
         if not mapfile and not template:
             template = deftemplates.get(hooktype) or single_template
-        spec = cmdutil.logtemplatespec(template, mapfile)
-        self.t = cmdutil.changeset_templater(self.ui, self.repo, spec,
-                                             False, None, False)
+        spec = logcmdutil.templatespec(template, mapfile)
+        self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec,
+                                               False, None, False)
 
     def strip(self, path):
         '''strip leading slashes from local path, turn into web-safe path.'''