Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
5472:23889160905a | 6122:800e2756c9ab |
---|---|
74 count += 1 | 74 count += 1 |
75 if stripecount and count >= stripecount: | 75 if stripecount and count >= stripecount: |
76 parity = 1 - parity | 76 parity = 1 - parity |
77 count = 0 | 77 count = 0 |
78 | 78 |
79 def countgen(start=0, step=1): | |
80 """count forever -- useful for line numbers""" | |
81 while True: | |
82 yield start | |
83 start += step | |
84 |