Mercurial > public > mercurial-scm > hg-stable
comparison mercurial/subrepo.py @ 22695:15a70ca40b22
subrepo: use exchange.pull
localrepo.pull is going away, see 4d52e6eb98ea for details.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Oct 2014 11:12:55 -0500 |
parents | f4e39ceb064a |
children | c95db3208a33 |
comparison
equal
deleted
inserted
replaced
22694:21d5416b8a8a | 22695:15a70ca40b22 |
---|---|
741 self._cachestorehash(srcurl) | 741 self._cachestorehash(srcurl) |
742 else: | 742 else: |
743 self._repo.ui.status(_('pulling subrepo %s from %s\n') | 743 self._repo.ui.status(_('pulling subrepo %s from %s\n') |
744 % (subrelpath(self), srcurl)) | 744 % (subrelpath(self), srcurl)) |
745 cleansub = self.storeclean(srcurl) | 745 cleansub = self.storeclean(srcurl) |
746 self._repo.pull(other) | 746 exchange.pull(self._repo, other) |
747 if cleansub: | 747 if cleansub: |
748 # keep the repo clean after pull | 748 # keep the repo clean after pull |
749 self._cachestorehash(srcurl) | 749 self._cachestorehash(srcurl) |
750 return False | 750 return False |
751 | 751 |