# HG changeset patch # User Pierre-Yves David # Date 1618418082 -7200 # Node ID 338ab1d89ddb6d528802b98e825fa71ccb8c4a3c # Parent 279df499511e90bafed58f25ca56e0191efbf867 clone: use `get_clone_path` "Surprisingly", the new API is well suited for `hg clone` too. Differential Revision: https://phab.mercurial-scm.org/D10417 diff -r 279df499511e -r 338ab1d89ddb mercurial/hg.py --- a/mercurial/hg.py Wed Apr 14 17:41:02 2021 +0200 +++ b/mercurial/hg.py Wed Apr 14 18:34:42 2021 +0200 @@ -689,7 +689,7 @@ if dest: ui.status(_(b"destination directory: %s\n") % dest) else: - dest = ui.expandpath(dest) + dest = urlutil.get_clone_path(ui, dest)[0] dest = urlutil.urllocalpath(dest) source = urlutil.urllocalpath(source)