Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgweb_mod.py @ 4349:69109aa0cddd
Merge with stable
author | Matt Mackall <mpm@selenic.com> |
---|---|
date | Mon, 16 Apr 2007 09:52:37 -0500 |
parents | c593e502f7fd b633f470944e |
children | e19d9b1223ee |
comparison
equal
deleted
inserted
replaced
4347:70d1491d3db2 | 4349:69109aa0cddd |
---|---|
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[:root.rfind(root, pi)] | 706 root = root[:root.rfind(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: |