changeset 4347:70d1491d3db2

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Sun, 15 Apr 2007 18:42:51 -0500
parents c593e502f7fd (diff) ec64f263e49a (current diff)
children 69109aa0cddd
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- 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