# HG changeset patch # User Pierre-Yves David # Date 2021-04-14 19:15:22 # Node ID 69359c91dc4303460020ed0c1edf475a02a6b186 # Parent 9e021cffb3566e501aacc9bf72d4a1e1704ddecf debugssl: use `get_unique_pull_path` Let's move this code to the new API. Differential Revision: https://phab.mercurial-scm.org/D10427 diff --git a/mercurial/debugcommands.py b/mercurial/debugcommands.py --- a/mercurial/debugcommands.py +++ b/mercurial/debugcommands.py @@ -3654,7 +3654,9 @@ def debugssl(ui, repo, source=None, **op ) 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}