##// END OF EJS Templates
subrepo: use code from 71ea5b2b9517 only if Python needs it (issue2795)...
Thomas Arendsen Hein -
r14205:7b627923 stable
parent child Browse files
Show More
@@ -203,7 +203,8 b' def _abssource(repo, push=False, abort=T'
203 if parent[-1] == '/':
203 if parent[-1] == '/':
204 parent = parent[:-1]
204 parent = parent[:-1]
205 r = urlparse.urlparse(parent + '/' + source)
205 r = urlparse.urlparse(parent + '/' + source)
206 if parent.startswith('ssh://'):
206 if parent.startswith('ssh://') and not r[1]:
207 # Python before 2.6 parses ssh:// URLs wrong
207 host, path = r[2][2:].split('/', 1)
208 host, path = r[2][2:].split('/', 1)
208 r2 = '//%s/%s' % (host, posixpath.normpath(path))
209 r2 = '//%s/%s' % (host, posixpath.normpath(path))
209 else:
210 else:
General Comments 0
You need to be logged in to leave comments. Login now