# HG changeset patch # User Pierre-Yves David # Date 1669958692 -3600 # Node ID aae6b10d93f21dc869b06d90830a7707f5ab61f3 # Parent 4303fa8f423236685b6d81f2478c15cadd7a8ea8 path: pass `path` to `peer` in `hg debugssl` We directly use the `path` object to build the `peer` object. diff -r 4303fa8f4232 -r aae6b10d93f2 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: