comparison hgext/bugzilla.py @ 35954:386c1e45e671

logcmdutil: drop default arguments from changesetdisplayer/templater() calls
author Yuya Nishihara <yuya@tcha.org>
date Sun, 21 Jan 2018 14:28:03 +0900
parents c8e2d6ed1f9e
children f0b6fbea00cf
comparison
equal deleted inserted replaced
35953:64f4a6808704 35954:386c1e45e671
1089 mapfile = self.ui.config('bugzilla', 'style') 1089 mapfile = self.ui.config('bugzilla', 'style')
1090 if not mapfile and not tmpl: 1090 if not mapfile and not tmpl:
1091 tmpl = _('changeset {node|short} in repo {root} refers ' 1091 tmpl = _('changeset {node|short} in repo {root} refers '
1092 'to bug {bug}.\ndetails:\n\t{desc|tabindent}') 1092 'to bug {bug}.\ndetails:\n\t{desc|tabindent}')
1093 spec = logcmdutil.templatespec(tmpl, mapfile) 1093 spec = logcmdutil.templatespec(tmpl, mapfile)
1094 t = logcmdutil.changesettemplater(self.ui, self.repo, spec, 1094 t = logcmdutil.changesettemplater(self.ui, self.repo, spec)
1095 False, None, False)
1096 self.ui.pushbuffer() 1095 self.ui.pushbuffer()
1097 t.show(ctx, changes=ctx.changeset(), 1096 t.show(ctx, changes=ctx.changeset(),
1098 bug=str(bugid), 1097 bug=str(bugid),
1099 hgweb=self.ui.config('web', 'baseurl'), 1098 hgweb=self.ui.config('web', 'baseurl'),
1100 root=self.repo.root, 1099 root=self.repo.root,