Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sun Dec 02 17:15:03 2007 +0100 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Dec 02 19:45:38 2007 +0100 @@ -17,7 +17,7 @@ class hgwebdir(object): def __init__(self, config, parentui=None): def cleannames(items): - return [(util.pconvert(name.strip(os.sep)), path) + return [(util.pconvert(name).strip('/'), path) for name, path in items] self.parentui = parentui