[PATCH 1 of 4] hgweb: remove unused argument of entries function in filelog

Alexander Plavin alexander at plav.in
Sun Nov 10 14:25:21 UTC 2013


# HG changeset patch
# User Alexander Plavin <alexander at plav.in>
# Date 1384092353 -14400
#      Sun Nov 10 18:05:53 2013 +0400
# Node ID cdfc1979e2b57be3029407c38d39eda0805b91a2
# Parent  e1d32c0ea787f252c42d0d983a096b7ed4f5fcff
hgweb: remove unused argument of entries function in filelog

This doesn't change the behavior as the argument wasn't used anyway.

diff -r e1d32c0ea787 -r cdfc1979e2b5 mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Fri Sep 06 13:30:59 2013 +0400
+++ b/mercurial/hgweb/webcommands.py	Sun Nov 10 18:05:53 2013 +0400
@@ -837,7 +837,7 @@
     end = min(count, start + revcount) # last rev on this page
     parity = paritygen(web.stripecount, offset=start - end)
 
-    def entries(latestonly, **map):
+    def entries(latestonly):
         l = []
 
         repo = web.repo
@@ -872,8 +872,8 @@
     revnav = webutil.filerevnav(web.repo, fctx.path())
     nav = revnav.gen(end - 1, revcount, count)
     return tmpl("filelog", file=f, node=fctx.hex(), nav=nav,
-                entries=lambda **x: entries(latestonly=False, **x),
-                latestentry=lambda **x: entries(latestonly=True, **x),
+                entries=lambda **x: entries(latestonly=False),
+                latestentry=lambda **x: entries(latestonly=True),
                 revcount=revcount, morevars=morevars, lessvars=lessvars)
 
 def archive(web, req, tmpl):


More information about the Mercurial-devel mailing list