Comments
Patch
@@ -194,13 +194,17 @@ def changelog(web, req, tmpl, shortlog=F
except error.RepoError:
return _search(web, req, tmpl) # XXX redirect to 404 page?
def changelist(lastest=False, **map):
l = [] # build a list in forward order for efficiency
- revs = xrange(start, end)
+ revs = []
+ if start < end:
+ revs = web.repo.changelog.revs(start, end - 1)
if lastest:
- revs = (end - 1,)
+ for r in revs:
+ pass
+ revs = (r,)
for i in revs:
ctx = web.repo[i]
n = ctx.node()
showtags = webutil.showtag(web.repo, tmpl, 'changelogtag', n)
files = webutil.listfilediffs(tmpl, ctx.files(), n, web.maxfiles)
@@ -742,13 +746,15 @@ def filelog(web, req, tmpl):
def entries(lastest=False, **map):
l = []
repo = web.repo
- revs = xrange(start, end)
+ revs = repo.changelog.revs(start, end - 1)
if lastest:
- revs = (end - 1,)
+ for r in revs:
+ pass
+ revs = (r,)
for i in revs:
iterfctx = fctx.filectx(i)
l.append({"parity": parity.next(),
"filerev": i,