Show More
@@ -298,8 +298,13 b' def opener(ui, authinfo=None):' | |||
|
298 | 298 | opener.addheaders.append(('Accept', 'application/mercurial-0.1')) |
|
299 | 299 | return opener |
|
300 | 300 | |
|
301 | scheme_re = re.compile(r'^([a-zA-Z0-9+-.]+)://') | |
|
302 | ||
|
301 | 303 | def open(ui, url, data=None): |
|
302 | scheme = urlparse.urlsplit(url)[0] | |
|
304 | scheme = None | |
|
305 | m = scheme_re.search(url) | |
|
306 | if m: | |
|
307 | scheme = m.group(1).lower() | |
|
303 | 308 | if not scheme: |
|
304 | 309 | path = util.normpath(os.path.abspath(url)) |
|
305 | 310 | url = 'file://' + urllib.pathname2url(path) |
General Comments 0
You need to be logged in to leave comments.
Login now