comparison python/setup_repo.py @ 451:96859ac4d23f

python/setup_repo.py
author Jeff Hammel <jhammel@mozilla.com>
date Sat, 10 Aug 2013 16:25:57 -0700
parents 56fa913491a1
children 7d6bd51f0323
comparison
equal deleted inserted replaced
450:56fa913491a1 451:96859ac4d23f
50 - remote_path : remote path of hg repository links; otherwise taken from --remote-url, if specified 50 - remote_path : remote path of hg repository links; otherwise taken from --remote-url, if specified
51 """ 51 """
52 52
53 # parse remote URL 53 # parse remote URL
54 host, netloc, path, query, anchor = urlparse.urlsplit(remote_url) 54 host, netloc, path, query, anchor = urlparse.urlsplit(remote_url)
55 if options.remote_path: 55 if remote_path:
56
57 # split off remote host and path
58 # XXX is a separate host necessary?
56 remote_host = host 59 remote_host = host
57 if ':' in remote_path: 60 if ':' in remote_path:
58 remote_host, remote_path = remote_path.split(':', 1) 61 remote_host, remote_path = remote_path.split(':', 1)
59 else: 62 else:
60 remote_path = path 63 remote_path = path