Merge with crew-stable
authorPatrick Mezard <pmezard@gmail.com>
Sun, 02 Dec 2007 19:45:38 +0100
changeset 5585 b34028d52e7e
parent 5583 1b5b81d9039b (current diff)
parent 5584 d2831a5d5947 (diff)
child 5586 b90b72729a72
Merge with crew-stable
mercurial/hgweb/hgwebdir_mod.py
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 02 17:15:03 2007 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 02 19:45:38 2007 +0100
@@ -17,7 +17,7 @@
 class hgwebdir(object):
     def __init__(self, config, parentui=None):
         def cleannames(items):
-            return [(util.pconvert(name.strip(os.sep)), path)
+            return [(util.pconvert(name).strip('/'), path)
                     for name, path in items]
 
         self.parentui = parentui