mercurial/hg.py
changeset 35565 bdae51a83dfb
parent 35438 0ebd94ac56d1
child 35582 72b91f905065
--- a/mercurial/hg.py	Thu Dec 21 13:57:57 2017 +0100
+++ b/mercurial/hg.py	Thu Dec 21 13:58:11 2017 +0100
@@ -659,6 +659,9 @@
                 checkout = revs[0]
             local = destpeer.local()
             if local:
+                u = util.url(abspath)
+                defaulturl = bytes(u)
+                local.ui.setconfig('paths', 'default', defaulturl, 'clone')
                 if not stream:
                     if pull:
                         stream = False