Mercurial > public > mercurial-scm > hg
diff hgext/notify.py @ 32839:b425ec7fb7f6
cmdutil: pass templatespec tuple directly to changeset_templater (API)
A fewer number of arguments should be better.
author | Yuya Nishihara <yuya@tcha.org> |
---|---|
date | Sat, 22 Apr 2017 19:02:47 +0900 |
parents | d5883fd055c6 |
children | 2069a8c336b9 |
line wrap: on
line diff
--- 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.'''