changeset 4342:9bfe93edfbb0

Merge with crew
author Matt Mackall <mpm@selenic.com>
date Sun, 15 Apr 2007 18:40:22 -0500
parents 26a2fa9433b8 (diff) 7ae02bce8de2 (current diff)
children c593e502f7fd b633f470944e
files
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgweb_mod.py	Thu Apr 12 14:45:53 2007 -0700
+++ b/mercurial/hgweb/hgweb_mod.py	Sun Apr 15 18:40:22 2007 -0500
@@ -716,7 +716,7 @@
                     # 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