Patchwork [1,of,3,V2] hgweb: remove unused argument of changelist function in changelog

login
register
mail settings
Submitter Alexander Plavin
Date Aug. 17, 2013, 10:27 p.m.
Message ID <77ffac585b5fe680fc30.1376778473@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2199/
State Superseded
Commit 6907251122e3b93281cc6a98ba64c832834d877d
Headers show

Comments

Alexander Plavin - Aug. 17, 2013, 10:27 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1376018164 -14400
#      Fri Aug 09 07:16:04 2013 +0400
# Node ID 77ffac585b5fe680fc30c9bb4437d63f0cad96f4
# Parent  f9e7acdebe965469291e92b3ad51ee9af7609837
hgweb: remove unused argument of changelist function in changelog

Patch

diff -r f9e7acdebe96 -r 77ffac585b5f mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Thu Jul 25 01:08:41 2013 +0400
+++ b/mercurial/hgweb/webcommands.py	Fri Aug 09 07:16:04 2013 +0400
@@ -271,7 +271,7 @@ 
     else:
         ctx = web.repo['tip']
 
-    def changelist(latestonly, **map):
+    def changelist(latestonly):
         revs = []
         if pos != -1:
             revs = web.repo.changelog.revs(pos, 0)
@@ -323,8 +323,8 @@ 
 
     return tmpl(shortlog and 'shortlog' or 'changelog', changenav=changenav,
                 node=ctx.hex(), rev=pos, changesets=count,
-                entries=lambda **x: changelist(latestonly=False, **x),
-                latestentry=lambda **x: changelist(latestonly=True, **x),
+                entries=lambda **x: changelist(latestonly=False),
+                latestentry=lambda **x: changelist(latestonly=True),
                 archives=web.archivelist("tip"), revcount=revcount,
                 morevars=morevars, lessvars=lessvars, query=query)