comparison mercurial/hgweb/hgwebdir_mod.py @ 10078:97c75ad3b1a0

hgweb: Make get_mtime use repository to find store path. It was calculating it directly, which is redundant and caused it to break with shared repositories.
author Brendan Cully <brendan@kublai.com>
date Tue, 15 Dec 2009 12:33:04 -0800
parents 5d748045c2ae
children d6512b3e9ac0
comparison
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", "")