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

Alexander Plavin alexander at plav.in
Sat Aug 17 17:27:53 CDT 2013


# HG changeset patch
# User Alexander Plavin <alexander at 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

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)
 


More information about the Mercurial-devel mailing list