diff --git a/mercurial/hgweb/webcommands.py b/mercurial/hgweb/webcommands.py --- a/mercurial/hgweb/webcommands.py +++ b/mercurial/hgweb/webcommands.py @@ -119,7 +119,7 @@ def _search(web, req, tmpl): cl = web.repo.changelog for i in xrange(len(web.repo) - 1, 0, -100): l = [] - for j in cl.revs(max(0, i - 100), i + 1): + for j in cl.revs(max(0, i - 99), i): ctx = web.repo[j] l.append(ctx) l.reverse()