hgweb: drop recursivity in _navseq
authorPierre-Yves David <pierre-yves.david@logilab.fr>
Thu, 10 Jan 2013 18:44:26 +0100
changeset 18390 28fa9443f751
parent 18389 82572533bc00
child 18391 833eb34e90e4
hgweb: drop recursivity in _navseq This is totally not needed.
mercurial/hgweb/webutil.py
--- 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