locarepo: remove the `pull` method (API)
authorPierre-Yves David <pierre-yves.david@fb.com>
Fri, 03 Oct 2014 11:37:56 -0500
changeset 22700 41421bd9c42e
parent 22699 74da54e52d7c
child 22701 cb28d2b3db0b
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.
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