path: pass `path` to `peer` in `hg transplant`
We directly use the `path` object to build the `peer` object.
--- 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: