Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/debugcommands.py @ 46959:9e021cffb356
debugdiscovery: use `get_unique_pull_path`
Lets move this code to the new API.
Differential Revision: https://phab.mercurial-scm.org/D10426
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Apr 2021 21:11:39 +0200 |
parents | 4452cb788404 |
children | 69359c91dc43 |
comparison
equal
deleted
inserted
replaced
46958:5a6a1cd21f09 | 46959:9e021cffb356 |
---|---|
1058 # make sure tests are repeatable | 1058 # make sure tests are repeatable |
1059 random.seed(int(opts[b'seed'])) | 1059 random.seed(int(opts[b'seed'])) |
1060 | 1060 |
1061 if not remote_revs: | 1061 if not remote_revs: |
1062 | 1062 |
1063 remoteurl, branches = urlutil.parseurl(ui.expandpath(remoteurl)) | 1063 remoteurl, branches = urlutil.get_unique_pull_path( |
1064 b'debugdiscovery', repo, ui, remoteurl | |
1065 ) | |
1064 remote = hg.peer(repo, opts, remoteurl) | 1066 remote = hg.peer(repo, opts, remoteurl) |
1065 ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(remoteurl)) | 1067 ui.status(_(b'comparing with %s\n') % urlutil.hidepassword(remoteurl)) |
1066 else: | 1068 else: |
1067 branches = (None, []) | 1069 branches = (None, []) |
1068 remote_filtered_revs = scmutil.revrange( | 1070 remote_filtered_revs = scmutil.revrange( |