Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/common.py @ 6122:800e2756c9ab
Add line anchors to annotate, changeset, diff, file views for hgweb
author | Edward Lee <edward.lee@engineering.uiuc.edu> |
---|---|
date | Tue, 04 Sep 2007 22:25:37 -0500 |
parents | 12e4d9524951 |
children | f7f25f58693a |
line wrap: on
line diff
--- 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 +