##// END OF EJS Templates
hgweb: drop recursivity in _navseq...
Pierre-Yves David -
r18390:28fa9443 default
parent child Browse files
Show More
@@ -29,11 +29,11 b' def _navseq(factor, limit=None):'
29 yield limit
29 yield limit
30 if limit >= 20 and limit <= 40:
30 if limit >= 20 and limit <= 40:
31 yield 50
31 yield 50
32 else:
32 factor *= 10
33 while True:
33 yield 1 * factor
34 yield 1 * factor
34 yield 3 * factor
35 yield 3 * factor
35 for f in _navseq(factor * 10):
36 factor *= 10
36 yield f
37
37
38 def revnavgen(pos, pagelen, limit, nodefunc):
38 def revnavgen(pos, pagelen, limit, nodefunc):
39 """computes label and revision id for navigation link
39 """computes label and revision id for navigation link
General Comments 0
You need to be logged in to leave comments. Login now