localrepo: use exchange.pull when cloning
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 11:15:33 -0500
changeset 22696 73b5b8312ce6
parent 22695 15a70ca40b22
child 22697 6ea41d41aba1
localrepo: use exchange.pull when cloning localrepo.pull is going away. See 4d52e6eb98ea for details.
mercurial/localrepo.py
--- a/mercurial/localrepo.py	Fri Oct 03 11:12:55 2014 -0500
+++ b/mercurial/localrepo.py	Fri Oct 03 11:15:33 2014 -0500
@@ -1728,7 +1728,7 @@
         quiet = self.ui.backupconfig('ui', 'quietbookmarkmove')
         try:
             self.ui.setconfig('ui', 'quietbookmarkmove', True, 'clone')
-            ret = self.pull(remote, heads)
+            ret = exchange.pull(self, remote, heads).cgresult
         finally:
             self.ui.restoreconfig(quiet)
         return ret