mercurial/hgweb/webutil.py
changeset 18390 28fa9443f751
parent 18389 82572533bc00
child 18391 833eb34e90e4
--- a/mercurial/hgweb/webutil.py	Tue Jan 15 12:11:18 2013 +0100
+++ b/mercurial/hgweb/webutil.py	Thu Jan 10 18:44:26 2013 +0100
@@ -29,11 +29,11 @@
         yield limit
         if limit >= 20 and limit <= 40:
             yield 50
-    else:
+        factor *= 10
+    while True:
         yield 1 * factor
         yield 3 * factor
-    for f in _navseq(factor * 10):
-        yield f
+        factor *= 10
 
 def revnavgen(pos, pagelen, limit, nodefunc):
     """computes label and revision id for navigation link