changeset 49730:c6ae90515660

path: use `get_unique_pull_path_obj` in `hg relink` This is not really needed, but that help removing caller of the older function.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 02 Dec 2022 06:33:50 +0100
parents acf4be97033b
children c130d2d8d775
files hgext/relink.py
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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'))