Skip to content
Snippets Groups Projects
Commit e111d5e6 authored by Alexander Plavin's avatar Alexander Plavin
Browse files

hgweb: fix duplication for some search queries

Given that N is maximum revision number in a repo, than if a revision with
number N-100n or N-100n+1 (for any integer n) is found with a hgweb search,
this revision is duplicated in search results.
parent 074bd023
No related branches found
No related tags found
No related merge requests found
......@@ -119,7 +119,7 @@
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()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment