mercurial/hgweb/common.py
changeset 6123 f7f25f58693a
parent 5993 948a41e77902
parent 6122 800e2756c9ab
child 6924 e8332c8108ff
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.