changeset 49731:c130d2d8d775

path: pass `path` to `peer` in `hg fetch` We directly use the `path` object to build the `peer` object.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 06:37:15 +0100
parents c6ae90515660
children 0058c74d7f72
files hgext/fetch.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/fetch.py	Fri Dec 02 06:33:50 2022 +0100
+++ b/hgext/fetch.py	Fri Dec 02 06:37:15 2022 +0100
@@ -108,9 +108,9 @@
                 )
             )
 
-        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: