Mercurial > hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
6117:c74f1d9092f8 | 6123:f7f25f58693a |
---|---|
99 count += 1 | 99 count += 1 |
100 if stripecount and count >= stripecount: | 100 if stripecount and count >= stripecount: |
101 parity = 1 - parity | 101 parity = 1 - parity |
102 count = 0 | 102 count = 0 |
103 | 103 |
104 def countgen(start=0, step=1): | |
105 """count forever -- useful for line numbers""" | |
106 while True: | |
107 yield start | |
108 start += step | |
109 | |
104 def get_contact(config): | 110 def get_contact(config): |
105 """Return repo contact information or empty string. | 111 """Return repo contact information or empty string. |
106 | 112 |
107 web.contact is the primary source, but if that is not set, try | 113 web.contact is the primary source, but if that is not set, try |
108 ui.username or $EMAIL as a fallback to display something useful. | 114 ui.username or $EMAIL as a fallback to display something useful. |