debugssl: use `get_unique_pull_path`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 14 Apr 2021 21:15:22 +0200
changeset 46960 69359c91dc43
parent 46959 9e021cffb356
child 46961 d7b36a4e03de
debugssl: use `get_unique_pull_path` Let's move this code to the new API. Differential Revision: https://phab.mercurial-scm.org/D10427
mercurial/debugcommands.py
--- 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}