Mercurial > hg
changeset 46953:394cfc42c05c
share: use `get_clone_path`
Since `hg share` is mostly like clone, do the same changes there.
Differential Revision: https://phab.mercurial-scm.org/D10419
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 14 Apr 2021 18:37:29 +0200 |
parents | 82366464190a |
children | 5d91eeac37ab |
files | mercurial/hg.py |
diffstat | 1 files changed, 2 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/hg.py Wed Apr 14 18:02:25 2021 +0200 +++ b/mercurial/hg.py Wed Apr 14 18:37:29 2021 +0200 @@ -305,11 +305,10 @@ if not dest: dest = defaultdest(source) else: - dest = ui.expandpath(dest) + dest = urlutil.get_clone_path(ui, dest)[1] if isinstance(source, bytes): - origsource = ui.expandpath(source) - source, branches = urlutil.parseurl(origsource) + origsource, source, branches = urlutil.get_clone_path(ui, source) srcrepo = repository(ui, source) rev, checkout = addbranchrevs(srcrepo, srcrepo, branches, None) else: