diff hgext/bugzilla.py @ 32857: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 870248603a4e
children 01a90fed5840
line wrap: on
line diff
--- a/hgext/bugzilla.py	Sat Apr 22 18:48:38 2017 +0900
+++ b/hgext/bugzilla.py	Sat Apr 22 19:02:47 2017 +0900
@@ -1040,8 +1040,9 @@
         if not mapfile and not tmpl:
             tmpl = _('changeset {node|short} in repo {root} refers '
                      'to bug {bug}.\ndetails:\n\t{desc|tabindent}')
-        t = cmdutil.changeset_templater(self.ui, self.repo,
-                                        False, None, tmpl, mapfile, False)
+        spec = cmdutil.logtemplatespec(tmpl, mapfile)
+        t = cmdutil.changeset_templater(self.ui, self.repo, spec,
+                                        False, None, False)
         self.ui.pushbuffer()
         t.show(ctx, changes=ctx.changeset(),
                bug=str(bugid),