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

Alexander Plavin alexander at plav.in
Wed Sep 18 17:42:54 UTC 2013


# HG changeset patch
# User Alexander Plavin <alexander at plav.in>
# Date 1378459857 -14400
#      Fri Sep 06 13:30:57 2013 +0400
# Node ID 305568814dbd7e196d116c07e2939db917a32e48
# Parent  04af452eb725b9f1c1f98d6dad25ba2a10ac5d9d
hgweb: remove unused argument of changelist function in changelog

This doesn't change the behavior as the argument isn't used anyway, and
it's a preparation to the next patches,

diff -r 04af452eb725 -r 305568814dbd mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Fri Sep 06 13:30:57 2013 +0400
+++ b/mercurial/hgweb/webcommands.py	Fri Sep 06 13:30:57 2013 +0400
@@ -275,7 +275,7 @@
     else:
         ctx = web.repo['tip']
 
-    def changelist(latestonly, **map):
+    def changelist(latestonly):
         revs = []
         if pos != -1:
             revs = web.repo.changelog.revs(pos, 0)
@@ -327,8 +327,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