mercurial/hgweb/hgwebdir_mod.py
changeset 5584 d2831a5d5947
parent 5336 24de027551c1
child 5585 b34028d52e7e
equal deleted inserted replaced
5581:8a8c341bd292 5584:d2831a5d5947
    14 
    14 
    15 # This is a stopgap
    15 # This is a stopgap
    16 class hgwebdir(object):
    16 class hgwebdir(object):
    17     def __init__(self, config, parentui=None):
    17     def __init__(self, config, parentui=None):
    18         def cleannames(items):
    18         def cleannames(items):
    19             return [(util.pconvert(name.strip(os.sep)), path)
    19             return [(util.pconvert(name).strip('/'), path)
    20                     for name, path in items]
    20                     for name, path in items]
    21 
    21 
    22         self.parentui = parentui
    22         self.parentui = parentui
    23         self.motd = None
    23         self.motd = None
    24         self.style = None
    24         self.style = None