changeset 5584:d2831a5d5947

hgwebdir: normalize virtual paths before stripping the separator It is not even clear that virtual paths should be normalized as normal paths at all, we could expect slash to be the natural separator.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 02 Dec 2007 19:39:27 +0100
parents 8a8c341bd292
children b34028d52e7e 60bd4e707a7d
files mercurial/hgweb/hgwebdir_mod.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 02 13:53:29 2007 +0100
+++ b/mercurial/hgweb/hgwebdir_mod.py	Sun Dec 02 19:39:27 2007 +0100
@@ -16,7 +16,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