changeset 22620:4d52e6eb98ea

locarepo: remove the `push` method (API) All the logic of this function is in the exchange.push function for some time. We just stop calling `localrepo.push` in `command.push` to have access to more information. Leaving `localrepo.push` in place will let third-party extensions wrap it but it would never be called by `hg push` 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 Thu, 25 Sep 2014 01:43:24 -0700
parents f6cf96804d27
children 76a43e0db516
files mercurial/localrepo.py
diffstat 1 files changed, 0 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/localrepo.py	Thu Sep 25 01:42:49 2014 -0700
+++ b/mercurial/localrepo.py	Thu Sep 25 01:43:24 2014 -0700
@@ -1591,9 +1591,6 @@
         """
         return util.hooks()
 
-    def push(self, remote, force=False, revs=None, newbranch=False):
-        return exchange.push(self, remote, force, revs, newbranch).cgresult
-
     def stream_in(self, remote, requirements):
         lock = self.lock()
         try: