Mercurial > public > mercurial-scm > hg
comparison mercurial/hgweb/hgweb_mod.py @ 4346:c593e502f7fd
Merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Sun, 15 Apr 2007 18:42:38 -0500 |
parents | aa26759c6fb3 26a2fa9433b8 |
children | 69109aa0cddd |
comparison
equal
deleted
inserted
replaced
4338:8b4d4f84b739 | 4346:c593e502f7fd |
---|---|
701 pi = normurl(req.env.get('PATH_INFO', '')) | 701 pi = normurl(req.env.get('PATH_INFO', '')) |
702 if pi: | 702 if pi: |
703 # strip leading / | 703 # strip leading / |
704 pi = pi[1:] | 704 pi = pi[1:] |
705 if pi: | 705 if pi: |
706 root = root[:-len(pi)] | 706 root = root[:root.rfind(root, pi)] |
707 if req.env.has_key('REPO_NAME'): | 707 if req.env.has_key('REPO_NAME'): |
708 rn = req.env['REPO_NAME'] + '/' | 708 rn = req.env['REPO_NAME'] + '/' |
709 root += rn | 709 root += rn |
710 query = pi[len(rn):] | 710 query = pi[len(rn):] |
711 else: | 711 else: |