Mercurial > public > mercurial-scm > hg
comparison mercurial/debugcommands.py @ 46960:69359c91dc43
debugssl: use `get_unique_pull_path`
Let's move this code to the new API.
Differential Revision: https://phab.mercurial-scm.org/D10427
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Apr 2021 21:15:22 +0200 |
parents | 9e021cffb356 |
children | d7b36a4e03de |
comparison
equal
deleted
inserted
replaced
46959:9e021cffb356 | 46960:69359c91dc43 |
---|---|
3652 b"server specified" | 3652 b"server specified" |
3653 ) | 3653 ) |
3654 ) | 3654 ) |
3655 source = b"default" | 3655 source = b"default" |
3656 | 3656 |
3657 source, branches = urlutil.parseurl(ui.expandpath(source)) | 3657 source, branches = urlutil.get_unique_pull_path( |
3658 b'debugssl', repo, ui, source | |
3659 ) | |
3658 url = urlutil.url(source) | 3660 url = urlutil.url(source) |
3659 | 3661 |
3660 defaultport = {b'https': 443, b'ssh': 22} | 3662 defaultport = {b'https': 443, b'ssh': 22} |
3661 if url.scheme in defaultport: | 3663 if url.scheme in defaultport: |
3662 try: | 3664 try: |