changeset 18390:28fa9443f751

hgweb: drop recursivity in _navseq This is totally not needed.
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Thu, 10 Jan 2013 18:44:26 +0100
parents 82572533bc00
children 833eb34e90e4
files mercurial/hgweb/webutil.py
diffstat 1 files changed, 3 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- 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