path: pass `path` to `peer` in `hg debugssl`
We directly use the `path` object to build the `peer` object.
--- a/mercurial/debugcommands.py Fri Dec 02 06:21:08 2022 +0100
+++ b/mercurial/debugcommands.py Fri Dec 02 06:24:52 2022 +0100
@@ -3595,10 +3595,8 @@
)
source = b"default"
- source, branches = urlutil.get_unique_pull_path(
- b'debugssl', repo, ui, source
- )
- url = urlutil.url(source)
+ path = urlutil.get_unique_pull_path_obj(b'debugssl', ui, source)
+ url = path.url
defaultport = {b'https': 443, b'ssh': 22}
if url.scheme in defaultport: