# HG changeset patch # User Matt Mackall # Date 1176680571 18000 # Node ID 70d1491d3db2c91ee0f00b27af178ecee3b9aca0 # Parent c593e502f7fd9b71843c1e8354064b63a184207e# Parent ec64f263e49a34efba287e35ebc24f68027faa72 Merge with crew diff --git a/mercurial/hgweb/hgweb_mod.py b/mercurial/hgweb/hgweb_mod.py --- a/mercurial/hgweb/hgweb_mod.py +++ b/mercurial/hgweb/hgweb_mod.py @@ -703,7 +703,7 @@ class hgweb(object): # strip leading / pi = pi[1:] if pi: - root = root[:-len(pi)] + root = root[:root.rfind(root, pi)] if req.env.has_key('REPO_NAME'): rn = req.env['REPO_NAME'] + '/' root += rn