Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/webcommands.py @ 20023:2771e59afac4
hgweb: use semantically suitable filelog.revs in filelog
The functions are equivalent in behaviour, so no behavior change.
author | Alexander Plavin <alexander@plav.in> |
---|---|
date | Sun, 10 Nov 2013 18:23:29 +0400 |
parents | d85dfe211c71 |
children | 1c46b18b0e1c |
comparison
equal
deleted
inserted
replaced
20022:d85dfe211c71 | 20023:2771e59afac4 |
---|---|
838 | 838 |
839 def entries(): | 839 def entries(): |
840 l = [] | 840 l = [] |
841 | 841 |
842 repo = web.repo | 842 repo = web.repo |
843 revs = repo.changelog.revs(start, end - 1) | 843 revs = fctx.filelog().revs(start, end - 1) |
844 for i in revs: | 844 for i in revs: |
845 iterfctx = fctx.filectx(i) | 845 iterfctx = fctx.filectx(i) |
846 | 846 |
847 l.append({"parity": parity.next(), | 847 l.append({"parity": parity.next(), |
848 "filerev": i, | 848 "filerev": i, |