# HG changeset patch # User Michele Cella # Date 1202481748 -3600 # Node ID 588ad9227b63a74a6b349d44143774a0dc35f819 # Parent 012ad48a07fafb7460b194b169031f5968801bc8 fix to let test-hgwebdir pass fixes a regression introduced in changeset f25070ecf334 diff -r 012ad48a07fa -r 588ad9227b63 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Fri Feb 08 11:55:17 2008 +0100 +++ b/mercurial/hgweb/hgwebdir_mod.py Fri Feb 08 15:42:28 2008 +0100 @@ -177,7 +177,7 @@ if u.configbool("web", "hidden", untrusted=True): continue - parts = [req.env['PATH_INFO'].strip('/'), name] + parts = [req.env['PATH_INFO'].rstrip('/'), name] if req.env['SCRIPT_NAME']: parts.insert(0, req.env['SCRIPT_NAME']) url = ('/'.join(parts).replace("//", "/")) + '/'