path: use `get_unique_pull_path_obj` in `hg relink`
This is not really needed, but that help removing caller of the older function.
--- 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'))