Merge with crew
authorMatt Mackall <mpm@selenic.com>
Sun, 15 Apr 2007 18:42:51 -0500
changeset 4347 70d1491d3db2
parent 4346 c593e502f7fd (diff)
parent 4342 ec64f263e49a (current diff)
child 4349 69109aa0cddd
Merge with crew
--- 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