changeset 49727:aae6b10d93f2

path: pass `path` to `peer` in `hg debugssl` We directly use the `path` object to build the `peer` object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 06:24:52 +0100
parents 4303fa8f4232
children 5177be2b4387
files mercurial/debugcommands.py
diffstat 1 files changed, 2 insertions(+), 4 deletions(-) [+]
line wrap: on
line diff
--- 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: