--- a/mercurial/hgweb/hgwebdir_mod.py Thu Apr 02 18:18:43 2009 -0600
+++ b/mercurial/hgweb/hgwebdir_mod.py Sat May 23 12:31:28 2009 -0500
@@ -72,12 +72,13 @@
self.repos.append((name, path))
if cp.has_section('collections'):
for prefix, root in cp.items('collections'):
+ prefix = util.pconvert(prefix)
for path in util.walkrepos(root, followsym=True):
repo = os.path.normpath(path)
- name = repo
+ name = util.pconvert(repo)
if name.startswith(prefix):
name = name[len(prefix):]
- self.repos.append((name.lstrip(os.sep), repo))
+ self.repos.append((name.lstrip('/'), repo))
self.repos.sort()
def run(self):