Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/hgweb/hgwebdir_mod.py @ 5585:b34028d52e7e
Merge with crew-stable
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Sun, 02 Dec 2007 19:45:38 +0100 |
parents | e15f7db0f0ee d2831a5d5947 |
children | 8279cb841467 |
comparison
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 |