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.
--- 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