Patchwork hgweb: remove unused argument of changelist function in changelog

login
register
mail settings
Submitter Alexander Plavin
Date Sept. 18, 2013, 5:42 p.m.
Message ID <305568814dbd7e196d11.1379526174@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2514/
State Accepted
Commit 6907251122e3b93281cc6a98ba64c832834d877d
Headers show

Comments

Alexander Plavin - Sept. 18, 2013, 5:42 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@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,
Matt Mackall - Sept. 18, 2013, 5:59 p.m.
On Wed, 2013-09-18 at 21:42 +0400, Alexander Plavin wrote:
> # HG changeset patch
> # User Alexander Plavin <alexander@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

Queued for default, thanks.

Patch

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)