changeset 49729:acf4be97033b

path: pass `path` to `peer` in `hg transplant` 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:31:19 +0100
parents 5177be2b4387
children c6ae90515660
files hgext/transplant.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/transplant.py	Fri Dec 02 06:29:11 2022 +0100
+++ b/hgext/transplant.py	Fri Dec 02 06:31:19 2022 +0100
@@ -817,8 +817,8 @@
 
     sourcerepo = opts.get(b'source')
     if sourcerepo:
-        u = urlutil.get_unique_pull_path(b'transplant', repo, ui, sourcerepo)[0]
-        peer = hg.peer(repo, opts, u)
+        path = urlutil.get_unique_pull_path_obj(b'transplant', ui, sourcerepo)
+        peer = hg.peer(repo, opts, path)
         heads = pycompat.maplist(peer.lookup, opts.get(b'branch', ()))
         target = set(heads)
         for r in revs: