hgext/notify.py
changeset 32857 b425ec7fb7f6
parent 29852 d5883fd055c6
child 33764 2069a8c336b9
--- a/hgext/notify.py	Sat Apr 22 18:48:38 2017 +0900
+++ b/hgext/notify.py	Sat Apr 22 19:02:47 2017 +0900
@@ -203,8 +203,9 @@
             mapfile = self.ui.config('notify', 'style')
         if not mapfile and not template:
             template = deftemplates.get(hooktype) or single_template
-        self.t = cmdutil.changeset_templater(self.ui, self.repo, False, None,
-                                             template, mapfile, False)
+        spec = cmdutil.logtemplatespec(template, mapfile)
+        self.t = cmdutil.changeset_templater(self.ui, self.repo, spec,
+                                             False, None, False)
 
     def strip(self, path):
         '''strip leading slashes from local path, turn into web-safe path.'''