mercurial/hgweb.py
changeset 1260 4603eef60237
parent 1219 56582bb2b869
child 1275 a1a84dd489ff
equal deleted inserted replaced
1259:f75567782aba 1260:4603eef60237
   962                 get = u.config
   962                 get = u.config
   963 
   963 
   964                 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
   964                 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
   965                        .replace("//", "/"))
   965                        .replace("//", "/"))
   966 
   966 
   967                 yield dict(contact=get("web", "contact") or
   967                 yield dict(contact=(get("ui", "username") or # preferred
   968                                    get("web", "author", "unknown"),
   968                                     get("web", "contact") or # deprecated
       
   969                                     get("web", "author", "unknown")), # also
   969                            name=get("web", "name", name),
   970                            name=get("web", "name", name),
   970                            url=url,
   971                            url=url,
   971                            parity=parity,
   972                            parity=parity,
   972                            shortdesc=get("web", "description", "unknown"),
   973                            shortdesc=get("web", "description", "unknown"),
   973                            lastupdate=os.stat(os.path.join(path, ".hg",
   974                            lastupdate=os.stat(os.path.join(path, ".hg",