# HG changeset patch # User Pierre-Yves David # Date 2022-12-02 05:33:50 # Node ID c6ae90515660023f909e03ef874991f73eb05701 # Parent acf4be97033b493fe3687d8bef9b2b8c2f293e2b path: use `get_unique_pull_path_obj` in `hg relink` This is not really needed, but that help removing caller of the older function. diff --git a/hgext/relink.py b/hgext/relink.py --- a/hgext/relink.py +++ b/hgext/relink.py @@ -67,8 +67,8 @@ def relink(ui, repo, origin=None, **opts 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'))