# HG changeset patch # User Matt Mackall # Date 2010-05-07 19:19:14 # Node ID dd543e8da87ea4bdd75cbbe91c131e157083ad75 # Parent 2a857f9d2c6c694af3d7eb2d591f1ba5bf62a793 subrepo: fix 2.5ism in url parsing diff --git a/mercurial/subrepo.py b/mercurial/subrepo.py --- a/mercurial/subrepo.py +++ b/mercurial/subrepo.py @@ -145,7 +145,7 @@ def _abssource(repo, push=False): parent = parent[:-1] r = urlparse.urlparse(parent + '/' + source) r = urlparse.urlunparse((r[0], r[1], - posixpath.normpath(r.path), + posixpath.normpath(r[2]), r[3], r[4], r[5])) return r return posixpath.normpath(os.path.join(parent, repo._subsource))