Mercurial > hg-stable
changeset 22700:41421bd9c42e
locarepo: remove the `pull` method (API)
All the logic of this function is in the `exchange.pull` function for some time.
We just stop calling `localrepo.pull` in `command.pull` to have access to more
information. Leaving `localrepo.pull` in place will let third-party extensions
wrap it but it would never be called by `hg pull` making the wrapping useless.
Therefore, the method is removed so that third-party code fail noisily and
get properly upgraded.
author | Pierre-Yves David <pierre-yves.david@fb.com> |
---|---|
date | Fri, 03 Oct 2014 11:37:56 -0500 |
parents | 74da54e52d7c |
children | cb28d2b3db0b |
files | mercurial/localrepo.py |
diffstat | 1 files changed, 0 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Oct 03 11:21:52 2014 -0500 +++ b/mercurial/localrepo.py Fri Oct 03 11:37:56 2014 -0500 @@ -1574,9 +1574,6 @@ return r - def pull(self, remote, heads=None, force=False, **kwargs): - return exchange.pull(self, remote, heads, force, **kwargs).cgresult - def checkpush(self, pushop): """Extensions can override this function if additional checks have to be performed before pushing, or call it if they override push