Mercurial > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 6046:588ad9227b63
fix to let test-hgwebdir pass
fixes a regression introduced in changeset f25070ecf334
author | Michele Cella <michele.cella@gmail.com> |
---|---|
date | Fri, 08 Feb 2008 15:42:28 +0100 |
parents | 948a41e77902 |
children | 942287cb1f57 |
comparison
equal
deleted
inserted
replaced
6045:012ad48a07fa | 6046:588ad9227b63 |
---|---|
175 return u.config(section, name, default, untrusted=True) | 175 return u.config(section, name, default, untrusted=True) |
176 | 176 |
177 if u.configbool("web", "hidden", untrusted=True): | 177 if u.configbool("web", "hidden", untrusted=True): |
178 continue | 178 continue |
179 | 179 |
180 parts = [req.env['PATH_INFO'].strip('/'), name] | 180 parts = [req.env['PATH_INFO'].rstrip('/'), name] |
181 if req.env['SCRIPT_NAME']: | 181 if req.env['SCRIPT_NAME']: |
182 parts.insert(0, req.env['SCRIPT_NAME']) | 182 parts.insert(0, req.env['SCRIPT_NAME']) |
183 url = ('/'.join(parts).replace("//", "/")) + '/' | 183 url = ('/'.join(parts).replace("//", "/")) + '/' |
184 | 184 |
185 # update time with local timezone | 185 # update time with local timezone |