equal
deleted
inserted
replaced
590 info = {b'v1capabilities': set(rawdata.split())} |
590 info = {b'v1capabilities': set(rawdata.split())} |
591 |
591 |
592 return respurl, info |
592 return respurl, info |
593 |
593 |
594 |
594 |
595 def makepeer(ui, path, opener=None, requestbuilder=urlreq.request): |
595 def _make_peer(ui, path, opener=None, requestbuilder=urlreq.request): |
596 """Construct an appropriate HTTP peer instance. |
596 """Construct an appropriate HTTP peer instance. |
597 |
597 |
598 ``opener`` is an ``url.opener`` that should be used to establish |
598 ``opener`` is an ``url.opener`` that should be used to establish |
599 connections, perform HTTP requests. |
599 connections, perform HTTP requests. |
600 |
600 |
626 if path.url.scheme == b'https' and not urlmod.has_https: |
626 if path.url.scheme == b'https' and not urlmod.has_https: |
627 raise error.Abort( |
627 raise error.Abort( |
628 _(b'Python support for SSL and HTTPS is not installed') |
628 _(b'Python support for SSL and HTTPS is not installed') |
629 ) |
629 ) |
630 |
630 |
631 inst = makepeer(ui, path) |
631 inst = _make_peer(ui, path) |
632 |
632 |
633 return inst |
633 return inst |
634 except error.RepoError as httpexception: |
634 except error.RepoError as httpexception: |
635 try: |
635 try: |
636 r = statichttprepo.make_peer(ui, b"static-" + path.loc, create) |
636 r = statichttprepo.make_peer(ui, b"static-" + path.loc, create) |