Mercurial > public > mercurial-scm > hg-stable
diff mercurial/hgweb/hgwebdir_mod.py @ 5063:142a07e758c8
hgwebdir: change os.sep in the name of repos to "/"
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sun, 05 Aug 2007 22:36:39 -0300 |
parents | 53eca35c3aeb |
children | 79373ec3f27d ed6df6b1c29a |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sat Aug 04 22:25:12 2007 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Aug 05 22:36:39 2007 -0300 @@ -17,7 +17,8 @@ class hgwebdir(object): def __init__(self, config, parentui=None): def cleannames(items): - return [(name.strip(os.sep), path) for name, path in items] + return [(util.pconvert(name.strip(os.sep)), path) + for name, path in items] self.parentui = parentui self.motd = None