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

login
register
mail settings
Submitter Alexander Plavin
Date Nov. 10, 2013, 2:25 p.m.
Message ID <cdfc1979e2b57be30294.1384093521@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2897/
State Accepted
Commit 4830763f825cfbe01f99d27b1821838579375917
Headers show

Comments

Alexander Plavin - Nov. 10, 2013, 2:25 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@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.

Patch

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):