Mercurial > hg
diff mercurial/hgweb/common.py @ 6123:f7f25f58693a
merged Edward Lee's line anchors patch
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Fri, 15 Feb 2008 19:44:54 +0100 |
parents | 948a41e77902 800e2756c9ab |
children | e8332c8108ff |
line wrap: on
line diff
--- a/mercurial/hgweb/common.py Fri Feb 15 18:37:00 2008 +0100 +++ b/mercurial/hgweb/common.py Fri Feb 15 19:44:54 2008 +0100 @@ -101,6 +101,12 @@ parity = 1 - parity count = 0 +def countgen(start=0, step=1): + """count forever -- useful for line numbers""" + while True: + yield start + start += step + def get_contact(config): """Return repo contact information or empty string.