comparison mercurial/hgweb.py @ 1023:bc806ba72959

Minor tweak to the revgen algorithm
author mpm@selenic.com
date Wed, 24 Aug 2005 03:33:54 -0700
parents 31dcaf9123ba
children 6d5a62a549fa
comparison
equal deleted inserted replaced
1022:31dcaf9123ba 1023:bc806ba72959
311 for i in range(cl.count() - 1, 0, -100): 311 for i in range(cl.count() - 1, 0, -100):
312 l = [] 312 l = []
313 for j in range(max(0, i - 100), i): 313 for j in range(max(0, i - 100), i):
314 n = cl.node(j) 314 n = cl.node(j)
315 changes = cl.read(n) 315 changes = cl.read(n)
316 l.insert(0, (n, j, changes)) 316 l.append((n, j, changes))
317 l.reverse()
317 for e in l: 318 for e in l:
318 yield e 319 yield e
319 320
320 for n, i, changes in revgen(): 321 for n, i, changes in revgen():
321 miss = 0 322 miss = 0