mercurial/hgweb/common.py
changeset 5779 e9f68860d5ed
parent 5760 0145f9afb0e7
child 5930 c301f15c965a
equal deleted inserted replaced
5778:9e97a7a0bb82 5779:e9f68860d5ed
    95         count += 1
    95         count += 1
    96         if stripecount and count >= stripecount:
    96         if stripecount and count >= stripecount:
    97             parity = 1 - parity
    97             parity = 1 - parity
    98             count = 0
    98             count = 0
    99 
    99 
       
   100 def get_contact(config):
       
   101     """Return repo contact information or empty string.
       
   102 
       
   103     web.contact is the primary source, but if that is not set, try
       
   104     ui.username or $EMAIL as a fallback to display something useful.
       
   105     """
       
   106     return (config("web", "contact") or
       
   107             config("ui", "username") or
       
   108             os.environ.get("EMAIL") or "")