hgext/relink.py
changeset 49842 c6ae90515660
parent 48966 6000f5b25c9b
child 50922 d28cc52e2c0f
--- 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'))