Mercurial > hg-stable
changeset 8536:6796d41be421
hgwebdir: fix [collections] evaluation under Windows
Virtual and real path separators are not the same under Windows.
author | Patrick Mezard <pmezard@gmail.com> |
---|---|
date | Thu, 21 May 2009 20:32:45 +0200 |
parents | 2ff17c4de1da |
children | b48a1e081f23 107af208ed0b 48da69ff79bd |
files | mercurial/hgweb/hgwebdir_mod.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hgweb/hgwebdir_mod.py Sun May 17 19:54:26 2009 +0200 +++ b/mercurial/hgweb/hgwebdir_mod.py Thu May 21 20:32:45 2009 +0200 @@ -72,12 +72,13 @@ self.repos.append((name, path)) if cp.has_section('collections'): for prefix, root in cp.items('collections'): + prefix = util.pconvert(prefix) for path in util.walkrepos(root, followsym=True): repo = os.path.normpath(path) - name = repo + name = util.pconvert(repo) if name.startswith(prefix): name = name[len(prefix):] - self.repos.append((name.lstrip(os.sep), repo)) + self.repos.append((name.lstrip('/'), repo)) self.repos.sort() def run(self):