Show More
@@ -220,7 +220,15 b' class hgwebdir(object):' | |||
|
220 | 220 | req.write(staticfile(static, fname, req) or |
|
221 | 221 | tmpl('error', error='%r not found' % fname)) |
|
222 | 222 | elif virtual: |
|
223 |
|
|
|
223 | while virtual: | |
|
224 | real = dict(self.repos).get(virtual) | |
|
225 | if real: | |
|
226 | break | |
|
227 | up = virtual.rfind('/') | |
|
228 | if up < 0: | |
|
229 | break | |
|
230 | virtual = virtual[:up] | |
|
231 | if real: | |
|
224 | 232 | req.env['REPO_NAME'] = virtual |
|
225 | 233 | try: |
|
226 | 234 | repo = hg.repository(parentui, real) |
@@ -230,7 +238,7 b' class hgwebdir(object):' | |||
|
230 | 238 | except hg.RepoError, inst: |
|
231 | 239 | req.write(tmpl("error", error=str(inst))) |
|
232 | 240 | else: |
|
233 |
subdir= |
|
|
241 | subdir=req.env.get("PATH_INFO", "").strip('/') + '/' | |
|
234 | 242 | if [r for r in self.repos if r[0].startswith(subdir)]: |
|
235 | 243 | makeindex(req, subdir) |
|
236 | 244 | else: |
General Comments 0
You need to be logged in to leave comments.
Login now