--- 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.'''