From patchwork Wed Apr 14 23:37:42 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Subject: D10406: fetch: use `get_unique_pull_path` to retrieve the path From: phabricator X-Patchwork-Id: 48721 Message-Id: To: Phabricator Cc: mercurial-devel@mercurial-scm.org Date: Wed, 14 Apr 2021 23:37:42 +0000 marmoute created this revision. Herald added a reviewer: hg-reviewers. Herald added a subscriber: mercurial-patches. REVISION SUMMARY The fetch command does not support multiple destination, so we use the new dedicated API for that. REPOSITORY rHG Mercurial BRANCH default REVISION DETAIL https://phab.mercurial-scm.org/D10406 AFFECTED FILES hgext/fetch.py CHANGE DETAILS To: marmoute, #hg-reviewers Cc: mercurial-patches, mercurial-devel diff --git a/hgext/fetch.py b/hgext/fetch.py --- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -109,11 +109,9 @@ ) ) - other = hg.peer(repo, opts, ui.expandpath(source)) - ui.status( - _(b'pulling from %s\n') - % urlutil.hidepassword(ui.expandpath(source)) - ) + path = urlutil.get_unique_pull_path(b'fetch', repo, ui, source)[0] + other = hg.peer(repo, opts, path) + ui.status(_(b'pulling from %s\n') % urlutil.hidepassword(path)) revs = None if opts[b'rev']: try: