Mercurial > public > mercurial-scm > hg-stable
comparison 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 |
comparison
equal
deleted
inserted
replaced
5062:3d35c8cb5eb4 | 5063:142a07e758c8 |
---|---|
15 | 15 |
16 # This is a stopgap | 16 # This is a stopgap |
17 class hgwebdir(object): | 17 class hgwebdir(object): |
18 def __init__(self, config, parentui=None): | 18 def __init__(self, config, parentui=None): |
19 def cleannames(items): | 19 def cleannames(items): |
20 return [(name.strip(os.sep), path) for name, path in items] | 20 return [(util.pconvert(name.strip(os.sep)), path) |
21 for name, path in items] | |
21 | 22 |
22 self.parentui = parentui | 23 self.parentui = parentui |
23 self.motd = None | 24 self.motd = None |
24 self.style = None | 25 self.style = None |
25 self.stripecount = None | 26 self.stripecount = None |