# HG changeset patch # User Alexis S. L. Carvalho # Date 1186364199 10800 # Node ID 142a07e758c8c638cb3d76b8715d674d8cbe5f1b # Parent 3d35c8cb5eb410d911c5e9dd55fffb264c339149 hgwebdir: change os.sep in the name of repos to "/" diff --git a/mercurial/hgweb/hgwebdir_mod.py b/mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py +++ b/mercurial/hgweb/hgwebdir_mod.py @@ -17,7 +17,8 @@ from hgweb_mod import hgweb class hgwebdir(object): def __init__(self, config, parentui=None): def cleannames(items): - return [(name.strip(os.sep), path) for name, path in items] + return [(util.pconvert(name.strip(os.sep)), path) + for name, path in items] self.parentui = parentui self.motd = None