mercurial/hgweb/hgwebdir_mod.py
changeset 5585 b34028d52e7e
parent 5579 e15f7db0f0ee
parent 5584 d2831a5d5947
child 5601 8279cb841467
equal deleted inserted replaced
5583:1b5b81d9039b 5585:b34028d52e7e
    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 [(util.pconvert(name.strip(os.sep)), path)
    20             return [(util.pconvert(name).strip('/'), path)
    21                     for name, path in items]
    21                     for name, path in items]
    22 
    22 
    23         self.parentui = parentui
    23         self.parentui = parentui
    24         self.motd = None
    24         self.motd = None
    25         self.style = None
    25         self.style = None