comparison mercurial/hgweb/hgweb_mod.py @ 6017:b29b75ce9645

hgweb: fix search skipping tip
author Dirkjan Ochtman <dirkjan@ochtman.nl>
date Tue, 05 Feb 2008 14:02:03 +0100
parents 48c22c719f8c
children 404be894cf71
comparison
equal deleted inserted replaced
5988:ee317dbfb9d0 6017:b29b75ce9645
263 qw = query.lower().split() 263 qw = query.lower().split()
264 264
265 def revgen(): 265 def revgen():
266 for i in xrange(cl.count() - 1, 0, -100): 266 for i in xrange(cl.count() - 1, 0, -100):
267 l = [] 267 l = []
268 for j in xrange(max(0, i - 100), i): 268 for j in xrange(max(0, i - 100), i + 1):
269 ctx = self.repo.changectx(j) 269 ctx = self.repo.changectx(j)
270 l.append(ctx) 270 l.append(ctx)
271 l.reverse() 271 l.reverse()
272 for e in l: 272 for e in l:
273 yield e 273 yield e