subrepo: use exchange.pull
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 11:12:55 -0500
changeset 22695 15a70ca40b22
parent 22694 21d5416b8a8a
child 22696 73b5b8312ce6
subrepo: use exchange.pull localrepo.pull is going away, see 4d52e6eb98ea for details.
mercurial/subrepo.py
--- a/mercurial/subrepo.py	Fri Oct 03 11:11:12 2014 -0500
+++ b/mercurial/subrepo.py	Fri Oct 03 11:12:55 2014 -0500
@@ -743,7 +743,7 @@
             self._repo.ui.status(_('pulling subrepo %s from %s\n')
                                  % (subrelpath(self), srcurl))
             cleansub = self.storeclean(srcurl)
-            self._repo.pull(other)
+            exchange.pull(self._repo, other)
             if cleansub:
                 # keep the repo clean after pull
                 self._cachestorehash(srcurl)