changeset 35993: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 64f4a6808704
children 218b77c4c87a
files hgext/bugzilla.py hgext/journal.py hgext/notify.py mercurial/cmdutil.py
diffstat 4 files changed, 4 insertions(+), 7 deletions(-) [+]
line wrap: on
line diff
--- 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),
--- 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]
--- 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.'''
--- 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'))