diff -r 615ec3f14aa9 -r b425ec7fb7f6 hgext/notify.py --- 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.'''