# HG changeset patch # User Patrick Mezard # Date 1299417467 -3600 # Node ID d24e97fd52a9bcde4bce4a7b6acb01feee394e00 # Parent 37f487b9fbcc5c11dda8e7a16e9e8f758ae907c3 test-doctest: handle unix/windows path discrepancies diff -r 37f487b9fbcc -r d24e97fd52a9 mercurial/hgweb/hgwebdir_mod.py --- a/mercurial/hgweb/hgwebdir_mod.py Sun Mar 06 10:06:09 2011 +0100 +++ b/mercurial/hgweb/hgwebdir_mod.py Sun Mar 06 14:17:47 2011 +0100 @@ -40,9 +40,10 @@ def urlrepos(prefix, roothead, paths): """yield url paths and filesystem paths from a list of repo paths - >>> list(urlrepos('hg', '/opt', ['/opt/r', '/opt/r/r', '/opt'])) + >>> conv = lambda seq: [(v, util.pconvert(p)) for v,p in seq] + >>> conv(urlrepos('hg', '/opt', ['/opt/r', '/opt/r/r', '/opt'])) [('hg/r', '/opt/r'), ('hg/r/r', '/opt/r/r'), ('hg', '/opt')] - >>> list(urlrepos('', '/opt', ['/opt/r', '/opt/r/r', '/opt'])) + >>> conv(urlrepos('', '/opt', ['/opt/r', '/opt/r/r', '/opt'])) [('r', '/opt/r'), ('r/r', '/opt/r/r'), ('', '/opt')] """ for path in paths: