Patchwork [3,of,4] hgweb: use semantically suitable filelog.revs in filelog

login
register
mail settings
Submitter Alexander Plavin
Date Nov. 10, 2013, 2:25 p.m.
Message ID <3e5ee03883a959fdfc4b.1384093523@debian-alexander.dolgopa>
Download mbox | patch
Permalink /patch/2898/
State Accepted
Commit 2771e59afac4f44d9f7a9c5c8e16484e06594322
Headers show

Comments

Alexander Plavin - Nov. 10, 2013, 2:25 p.m.
# HG changeset patch
# User Alexander Plavin <alexander@plav.in>
# Date 1384093409 -14400
#      Sun Nov 10 18:23:29 2013 +0400
# Node ID 3e5ee03883a959fdfc4b4e9b10437c5d3bdcc74a
# Parent  8bddf654c880f12052fa13efb07fedf7c2cf74c6
hgweb: use semantically suitable filelog.revs in filelog

The functions are equivalent in behaviour, so no behavior change.

Patch

diff -r 8bddf654c880 -r 3e5ee03883a9 mercurial/hgweb/webcommands.py
--- a/mercurial/hgweb/webcommands.py	Sun Nov 10 18:07:56 2013 +0400
+++ b/mercurial/hgweb/webcommands.py	Sun Nov 10 18:23:29 2013 +0400
@@ -841,7 +841,7 @@ 
         l = []
 
         repo = web.repo
-        revs = repo.changelog.revs(start, end - 1)
+        revs = fctx.filelog().revs(start, end - 1)
         for i in revs:
             iterfctx = fctx.filectx(i)