Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgwebdir_mod.py @ 6460:a63aed912e54
Merge from crew-stable.
author | Dirkjan Ochtman <dirkjan@ochtman.nl> |
---|---|
date | Thu, 03 Apr 2008 13:21:42 +0200 |
parents | a1007f7b9b7b 8189e03adb44 |
children | f67d1468ac50 |
comparison
equal
deleted
inserted
replaced
6458:da7524149787 | 6460:a63aed912e54 |
---|---|
179 return u.config(section, name, default, untrusted=True) | 179 return u.config(section, name, default, untrusted=True) |
180 | 180 |
181 if u.configbool("web", "hidden", untrusted=True): | 181 if u.configbool("web", "hidden", untrusted=True): |
182 continue | 182 continue |
183 | 183 |
184 parts = [req.env['PATH_INFO'].rstrip('/'), name] | 184 parts = [name] |
185 if 'PATH_INFO' in req.env: | |
186 parts.insert(0, req.env['PATH_INFO'].rstrip('/')) | |
185 if req.env['SCRIPT_NAME']: | 187 if req.env['SCRIPT_NAME']: |
186 parts.insert(0, req.env['SCRIPT_NAME']) | 188 parts.insert(0, req.env['SCRIPT_NAME']) |
187 url = ('/'.join(parts).replace("//", "/")) + '/' | 189 url = ('/'.join(parts).replace("//", "/")) + '/' |
188 | 190 |
189 # update time with local timezone | 191 # update time with local timezone |