mercurial/subrepo.py
branchstable
changeset 14205 7b627923739f
parent 14050 9e8a9d45945c
child 14221 680c3c6fcb48
child 14469 2fdea636f254
--- a/mercurial/subrepo.py	Tue May 03 11:46:02 2011 -0500
+++ b/mercurial/subrepo.py	Thu May 05 16:01:09 2011 +0200
@@ -203,7 +203,8 @@
                 if parent[-1] == '/':
                     parent = parent[:-1]
                 r = urlparse.urlparse(parent + '/' + source)
-                if parent.startswith('ssh://'):
+                if parent.startswith('ssh://') and not r[1]:
+                    # Python before 2.6 parses ssh:// URLs wrong
                     host, path = r[2][2:].split('/', 1)
                     r2 = '//%s/%s' % (host, posixpath.normpath(path))
                 else: