# HG changeset patch # User Pierre-Yves David # Date 2013-01-10 17:44:26 # Node ID 28fa9443f7517e3fab47f34c8f6d78a92dfaa234 # Parent 82572533bc0027bc4935902c5c5ba0afbe71ba8b hgweb: drop recursivity in _navseq This is totally not needed. diff --git a/mercurial/hgweb/webutil.py b/mercurial/hgweb/webutil.py --- a/mercurial/hgweb/webutil.py +++ b/mercurial/hgweb/webutil.py @@ -29,11 +29,11 @@ def _navseq(factor, limit=None): 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