mercurial/hgweb.py
changeset 1348 b8c82bf3da21
parent 1333 901c645c1943
child 1369 b6d4ebebc35c
equal deleted inserted replaced
1347:e89033eb90a5 1348:b8c82bf3da21
   949                 get = u.config
   949                 get = u.config
   950 
   950 
   951                 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
   951                 url = ('/'.join([req.env["REQUEST_URI"].split('?')[0], name])
   952                        .replace("//", "/"))
   952                        .replace("//", "/"))
   953 
   953 
       
   954                 # update time with local timezone
       
   955                 d = (os.stat(os.path.join(path,
       
   956                                           ".hg", "00changelog.d")).st_mtime,
       
   957                      util.makedate()[1])
       
   958 
   954                 yield dict(contact=(get("ui", "username") or # preferred
   959                 yield dict(contact=(get("ui", "username") or # preferred
   955                                     get("web", "contact") or # deprecated
   960                                     get("web", "contact") or # deprecated
   956                                     get("web", "author", "unknown")), # also
   961                                     get("web", "author", "unknown")), # also
   957                            name=get("web", "name", name),
   962                            name=get("web", "name", name),
   958                            url=url,
   963                            url=url,
   959                            parity=parity,
   964                            parity=parity,
   960                            shortdesc=get("web", "description", "unknown"),
   965                            shortdesc=get("web", "description", "unknown"),
   961                            lastupdate=os.stat(os.path.join(path, ".hg",
   966                            lastupdate=d)
   962                                               "00changelog.d")).st_mtime)
       
   963 
   967 
   964                 parity = 1 - parity
   968                 parity = 1 - parity
   965 
   969 
   966         virtual = req.env.get("PATH_INFO", "").strip('/')
   970         virtual = req.env.get("PATH_INFO", "").strip('/')
   967         if virtual:
   971         if virtual: