diff -r 23889160905a -r 800e2756c9ab mercurial/hgweb/common.py --- a/mercurial/hgweb/common.py Fri Sep 07 16:48:42 2007 +0200 +++ b/mercurial/hgweb/common.py Tue Sep 04 22:25:37 2007 -0500 @@ -76,3 +76,9 @@ parity = 1 - parity count = 0 +def countgen(start=0, step=1): + """count forever -- useful for line numbers""" + while True: + yield start + start += step +