##// 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 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),
@@ -503,8 +503,7 b' def journal(ui, repo, *args, **opts):'
503 fm.write('command', ' %s\n', entry.command)
503 fm.write('command', ' %s\n', entry.command)
504
504
505 if opts.get("commits"):
505 if opts.get("commits"):
506 displayer = logcmdutil.changesetdisplayer(ui, repo, opts,
506 displayer = logcmdutil.changesetdisplayer(ui, repo, opts)
507 buffered=False)
508 for hash in entry.newhashes:
507 for hash in entry.newhashes:
509 try:
508 try:
510 ctx = repo[hash]
509 ctx = repo[hash]
@@ -258,8 +258,7 b' class notifier(object):'
258 if not mapfile and not template:
258 if not mapfile and not template:
259 template = deftemplates.get(hooktype) or single_template
259 template = deftemplates.get(hooktype) or single_template
260 spec = logcmdutil.templatespec(template, mapfile)
260 spec = logcmdutil.templatespec(template, mapfile)
261 self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec,
261 self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec)
262 False, None, False)
263
262
264 def strip(self, path):
263 def strip(self, path):
265 '''strip leading slashes from local path, turn into web-safe path.'''
264 '''strip leading slashes from local path, turn into web-safe path.'''
@@ -2501,7 +2501,7 b' def commitforceeditor(repo, ctx, subs, f'
2501 def buildcommittemplate(repo, ctx, subs, extramsg, ref):
2501 def buildcommittemplate(repo, ctx, subs, extramsg, ref):
2502 ui = repo.ui
2502 ui = repo.ui
2503 spec = formatter.templatespec(ref, None, None)
2503 spec = formatter.templatespec(ref, None, None)
2504 t = logcmdutil.changesettemplater(ui, repo, spec, None, {}, False)
2504 t = logcmdutil.changesettemplater(ui, repo, spec)
2505 t.t.cache.update((k, templater.unquotestring(v))
2505 t.t.cache.update((k, templater.unquotestring(v))
2506 for k, v in repo.ui.configitems('committemplate'))
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