##// END OF EJS Templates
path: use `get_unique_pull_path_obj` in `hg relink`...
marmoute -
r50625:c6ae9051 default
parent child Browse files
Show More
@@ -67,8 +67,8 b' def relink(ui, repo, origin=None, **opts'
67
67
68 if origin is None and b'default-relink' in ui.paths:
68 if origin is None and b'default-relink' in ui.paths:
69 origin = b'default-relink'
69 origin = b'default-relink'
70 path, __ = urlutil.get_unique_pull_path(b'relink', repo, ui, origin)
70 path = urlutil.get_unique_pull_path_obj(b'relink', ui, origin)
71 src = hg.repository(repo.baseui, path)
71 src = hg.repository(repo.baseui, path.loc)
72 ui.status(_(b'relinking %s to %s\n') % (src.store.path, repo.store.path))
72 ui.status(_(b'relinking %s to %s\n') % (src.store.path, repo.store.path))
73 if repo.root == src.root:
73 if repo.root == src.root:
74 ui.status(_(b'there is nothing to relink\n'))
74 ui.status(_(b'there is nothing to relink\n'))
General Comments 0
You need to be logged in to leave comments. Login now