debugssl: use `get_unique_pull_path`
Let's move this code to the new API.
Differential Revision: https://phab.mercurial-scm.org/D10427
--- a/mercurial/debugcommands.py Wed Apr 14 21:11:39 2021 +0200
+++ b/mercurial/debugcommands.py Wed Apr 14 21:15:22 2021 +0200
@@ -3654,7 +3654,9 @@
)
source = b"default"
- source, branches = urlutil.parseurl(ui.expandpath(source))
+ source, branches = urlutil.get_unique_pull_path(
+ b'debugssl', repo, ui, source
+ )
url = urlutil.url(source)
defaultport = {b'https': 443, b'ssh': 22}