# HG changeset patch # User Pierre-Yves David # Date 1412354276 18000 # Node ID 41421bd9c42e2445de4f3b5fbf2c81f22ded8adc # Parent 74da54e52d7c2a2e84f11abda4b03f4be9c69bb5 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. diff -r 74da54e52d7c -r 41421bd9c42e mercurial/localrepo.py --- 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