mercurial/hgweb/hgwebdir_mod.py
changeset 10078 97c75ad3b1a0
parent 9903 5d748045c2ae
child 10264 d6512b3e9ac0
equal deleted inserted replaced
10077:89617aacb495 10078:97c75ad3b1a0
   233                 # squish repeated slashes out of the path component
   233                 # squish repeated slashes out of the path component
   234                 url = m.group(1) + re.sub('/+', '/', m.group(2)) + '/'
   234                 url = m.group(1) + re.sub('/+', '/', m.group(2)) + '/'
   235 
   235 
   236                 # update time with local timezone
   236                 # update time with local timezone
   237                 try:
   237                 try:
   238                     d = (get_mtime(path), util.makedate()[1])
   238                     r = hg.repository(self.ui, path)
       
   239                     d = (get_mtime(r.spath), util.makedate()[1])
   239                 except OSError:
   240                 except OSError:
   240                     continue
   241                     continue
   241 
   242 
   242                 contact = get_contact(get)
   243                 contact = get_contact(get)
   243                 description = get("web", "description", "")
   244                 description = get("web", "description", "")