--- a/hgext/bugzilla.py Sat Mar 08 16:01:58 2014 -0600
+++ b/hgext/bugzilla.py Sat Mar 08 16:14:08 2014 -0600
@@ -879,14 +879,13 @@
mapfile = self.ui.config('bugzilla', 'style')
tmpl = self.ui.config('bugzilla', 'template')
- t = cmdutil.changeset_templater(self.ui, self.repo,
- False, None, mapfile, False)
if not mapfile and not tmpl:
tmpl = _('changeset {node|short} in repo {root} refers '
'to bug {bug}.\ndetails:\n\t{desc|tabindent}')
if tmpl:
tmpl = templater.parsestring(tmpl, quoted=False)
- t.use_template(tmpl)
+ t = cmdutil.changeset_templater(self.ui, self.repo,
+ False, None, tmpl, mapfile, False)
self.ui.pushbuffer()
t.show(ctx, changes=ctx.changeset(),
bug=str(bugid),