mirror of
https://github.com/facebook/sapling.git
synced 2024-10-09 08:18:15 +03:00
hgweb: remove unused argument of entries function in filelog
This doesn't change the behavior as the argument wasn't used anyway.
This commit is contained in:
parent
90dd1201ec
commit
6a6391cdb6
@ -836,7 +836,7 @@ def filelog(web, req, tmpl):
|
||||
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
|
||||
@ -871,8 +871,8 @@ def filelog(web, req, tmpl):
|
||||
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):
|
||||
|
Loading…
Reference in New Issue
Block a user