##// END OF EJS Templates
logcmdutil: drop default arguments from changesetdisplayer/templater() calls
Yuya Nishihara -
r35972:386c1e45 default
parent child Browse files
Show More
@@ -1091,8 +1091,7 b' class bugzilla(object):'
1091 1091 tmpl = _('changeset {node|short} in repo {root} refers '
1092 1092 'to bug {bug}.\ndetails:\n\t{desc|tabindent}')
1093 1093 spec = logcmdutil.templatespec(tmpl, mapfile)
1094 t = logcmdutil.changesettemplater(self.ui, self.repo, spec,
1095 False, None, False)
1094 t = logcmdutil.changesettemplater(self.ui, self.repo, spec)
1096 1095 self.ui.pushbuffer()
1097 1096 t.show(ctx, changes=ctx.changeset(),
1098 1097 bug=str(bugid),
@@ -503,8 +503,7 b' def journal(ui, repo, *args, **opts):'
503 503 fm.write('command', ' %s\n', entry.command)
504 504
505 505 if opts.get("commits"):
506 displayer = logcmdutil.changesetdisplayer(ui, repo, opts,
507 buffered=False)
506 displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
508 507 for hash in entry.newhashes:
509 508 try:
510 509 ctx = repo[hash]
@@ -258,8 +258,7 b' class notifier(object):'
258 258 if not mapfile and not template:
259 259 template = deftemplates.get(hooktype) or single_template
260 260 spec = logcmdutil.templatespec(template, mapfile)
261 self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec,
262 False, None, False)
261 self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec)
263 262
264 263 def strip(self, path):
265 264 '''strip leading slashes from local path, turn into web-safe path.'''
@@ -2501,7 +2501,7 b' def commitforceeditor(repo, ctx, subs, f'
2501 2501 def buildcommittemplate(repo, ctx, subs, extramsg, ref):
2502 2502 ui = repo.ui
2503 2503 spec = formatter.templatespec(ref, None, None)
2504 t = logcmdutil.changesettemplater(ui, repo, spec, None, {}, False)
2504 t = logcmdutil.changesettemplater(ui, repo, spec)
2505 2505 t.t.cache.update((k, templater.unquotestring(v))
2506 2506 for k, v in repo.ui.configitems('committemplate'))
2507 2507
General Comments 0
You need to be logged in to leave comments. Login now