changeset 37954:9482498b96b0

hgweb: remove unused argument 'tmpl' from listfilediffs()
author Yuya Nishihara <yuya@tcha.org>
date Tue, 03 Apr 2018 23:34:55 +0900
parents 4237d07fad2c
children d088810c496e
files mercurial/hgweb/webcommands.py mercurial/hgweb/webutil.py
diffstat 2 files changed, 3 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/webcommands.py	Tue Apr 03 23:33:54 2018 +0900
+++ b/mercurial/hgweb/webcommands.py	Tue Apr 03 23:34:55 2018 +0900
@@ -296,8 +296,7 @@
             count += 1
             n = ctx.node()
             showtags = webutil.showtag(web.repo, 'changelogtag', n)
-            files = webutil.listfilediffs(web.tmpl, ctx.files(), n,
-                                          web.maxfiles)
+            files = webutil.listfilediffs(ctx.files(), n, web.maxfiles)
 
             lm = webutil.commonentry(web.repo, ctx)
             lm.update({
--- a/mercurial/hgweb/webutil.py	Tue Apr 03 23:33:54 2018 +0900
+++ b/mercurial/hgweb/webutil.py	Tue Apr 03 23:34:55 2018 +0900
@@ -445,7 +445,7 @@
     rev = ctx.rev()
     n = ctx.node()
     showtags = showtag(repo, 'changelogtag', n)
-    files = listfilediffs(web.tmpl, ctx.files(), n, web.maxfiles)
+    files = listfilediffs(ctx.files(), n, web.maxfiles)
 
     entry = commonentry(repo, ctx)
     entry.update(
@@ -515,7 +515,7 @@
     if len(files) > max:
         yield context.process('fileellipses', {})
 
-def listfilediffs(tmpl, files, node, max):
+def listfilediffs(files, node, max):
     return templateutil.mappedgenerator(_listfilediffsgen,
                                         args=(files, node, max))