[Updated] D10417: clone: use `get_clone_path`

marmoute (Pierre-Yves David) phabricator at mercurial-scm.org
Sat Apr 17 22:11:43 UTC 2021


Closed by commit rHG338ab1d89ddb: clone: use `get_clone_path` (authored by marmoute).
This revision was automatically updated to reflect the committed changes.

REPOSITORY
  rHG Mercurial

CHANGES SINCE LAST UPDATE
  https://phab.mercurial-scm.org/D10417?vs=26873&id=26983

CHANGES SINCE LAST ACTION
  https://phab.mercurial-scm.org/D10417/new/

REVISION DETAIL
  https://phab.mercurial-scm.org/D10417

AFFECTED FILES
  mercurial/hg.py

CHANGE DETAILS

diff --git a/mercurial/hg.py b/mercurial/hg.py
--- a/mercurial/hg.py
+++ b/mercurial/hg.py
@@ -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)



To: marmoute, #hg-reviewers, pulkit
Cc: pulkit, mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210417/7552db26/attachment-0002.html>


More information about the Mercurial-patches mailing list