# HG changeset patch # User Matt Mackall # Date 2007-04-16 14:52:37 # Node ID 69109aa0cddd3d245368c6af1f1a40f05714820a # Parent 70d1491d3db2c91ee0f00b27af178ecee3b9aca0 # Parent b633f470944e94c10348aeed07ea898b26032698 Merge with stable 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[:root.rfind(root, pi)] + root = root[:root.rfind(pi)] if req.env.has_key('REPO_NAME'): rn = req.env['REPO_NAME'] + '/' root += rn