path: pass `path` to `peer` in `hg debugssl`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Dec 2022 06:24:52 +0100
changeset 49727 aae6b10d93f2
parent 49726 4303fa8f4232
child 49728 5177be2b4387
path: pass `path` to `peer` in `hg debugssl` We directly use the `path` object to build the `peer` object.
mercurial/debugcommands.py
--- 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: