# HG changeset patch # User Pierre-Yves David # Date 2022-12-02 05:37:15 # Node ID c130d2d8d7756ae9ad1a0f54169244d2a2073aeb # Parent c6ae90515660023f909e03ef874991f73eb05701 path: pass `path` to `peer` in `hg fetch` We directly use the `path` object to build the `peer` object. diff --git a/hgext/fetch.py b/hgext/fetch.py --- a/hgext/fetch.py +++ b/hgext/fetch.py @@ -108,9 +108,9 @@ def fetch(ui, repo, source=b'default', * ) ) - path = urlutil.get_unique_pull_path(b'fetch', repo, ui, source)[0] + path = urlutil.get_unique_pull_path_obj(b'fetch', ui, source) other = hg.peer(repo, opts, path) - ui.status(_(b'pulling from %s\n') % urlutil.hidepassword(path)) + ui.status(_(b'pulling from %s\n') % urlutil.hidepassword(path.loc)) revs = None if opts[b'rev']: try: