equal
deleted
inserted
replaced
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. |