# HG changeset patch # User Yuya Nishihara # Date 1516512483 -32400 # Node ID 386c1e45e6712c7723b51c98ae507f58afc91874 # Parent 64f4a680870469c9c6978c8e8f4b96b5c272a4d4 logcmdutil: drop default arguments from changesetdisplayer/templater() calls diff -r 64f4a6808704 -r 386c1e45e671 hgext/bugzilla.py --- a/hgext/bugzilla.py Sun Jan 21 13:47:06 2018 +0900 +++ b/hgext/bugzilla.py Sun Jan 21 14:28:03 2018 +0900 @@ -1091,8 +1091,7 @@ tmpl = _('changeset {node|short} in repo {root} refers ' 'to bug {bug}.\ndetails:\n\t{desc|tabindent}') spec = logcmdutil.templatespec(tmpl, mapfile) - t = logcmdutil.changesettemplater(self.ui, self.repo, spec, - False, None, False) + t = logcmdutil.changesettemplater(self.ui, self.repo, spec) self.ui.pushbuffer() t.show(ctx, changes=ctx.changeset(), bug=str(bugid), diff -r 64f4a6808704 -r 386c1e45e671 hgext/journal.py --- a/hgext/journal.py Sun Jan 21 13:47:06 2018 +0900 +++ b/hgext/journal.py Sun Jan 21 14:28:03 2018 +0900 @@ -503,8 +503,7 @@ fm.write('command', ' %s\n', entry.command) if opts.get("commits"): - displayer = logcmdutil.changesetdisplayer(ui, repo, opts, - buffered=False) + displayer = logcmdutil.changesetdisplayer(ui, repo, opts) for hash in entry.newhashes: try: ctx = repo[hash] diff -r 64f4a6808704 -r 386c1e45e671 hgext/notify.py --- a/hgext/notify.py Sun Jan 21 13:47:06 2018 +0900 +++ b/hgext/notify.py Sun Jan 21 14:28:03 2018 +0900 @@ -258,8 +258,7 @@ if not mapfile and not template: template = deftemplates.get(hooktype) or single_template spec = logcmdutil.templatespec(template, mapfile) - self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec, - False, None, False) + self.t = logcmdutil.changesettemplater(self.ui, self.repo, spec) def strip(self, path): '''strip leading slashes from local path, turn into web-safe path.''' diff -r 64f4a6808704 -r 386c1e45e671 mercurial/cmdutil.py --- a/mercurial/cmdutil.py Sun Jan 21 13:47:06 2018 +0900 +++ b/mercurial/cmdutil.py Sun Jan 21 14:28:03 2018 +0900 @@ -2501,7 +2501,7 @@ def buildcommittemplate(repo, ctx, subs, extramsg, ref): ui = repo.ui spec = formatter.templatespec(ref, None, None) - t = logcmdutil.changesettemplater(ui, repo, spec, None, {}, False) + t = logcmdutil.changesettemplater(ui, repo, spec) t.t.cache.update((k, templater.unquotestring(v)) for k, v in repo.ui.configitems('committemplate'))