path: use `get_unique_pull_path_obj` in `hg relink`
authorPierre-Yves David <pierre-yves.david@octobus.net>
Fri, 02 Dec 2022 06:33:50 +0100
changeset 49730 c6ae90515660
parent 49729 acf4be97033b
child 49731 c130d2d8d775
path: use `get_unique_pull_path_obj` in `hg relink` This is not really needed, but that help removing caller of the older function.
hgext/relink.py
--- a/hgext/relink.py	Fri Dec 02 06:31:19 2022 +0100
+++ b/hgext/relink.py	Fri Dec 02 06:33:50 2022 +0100
@@ -67,8 +67,8 @@
 
     if origin is None and b'default-relink' in ui.paths:
         origin = b'default-relink'
-    path, __ = urlutil.get_unique_pull_path(b'relink', repo, ui, origin)
-    src = hg.repository(repo.baseui, path)
+    path = urlutil.get_unique_pull_path_obj(b'relink', ui, origin)
+    src = hg.repository(repo.baseui, path.loc)
     ui.status(_(b'relinking %s to %s\n') % (src.store.path, repo.store.path))
     if repo.root == src.root:
         ui.status(_(b'there is nothing to relink\n'))