# HG changeset patch # User Pierre-Yves David # Date 1411634604 25200 # Node ID 4d52e6eb98ea18a30448adca185cc9446ea78c31 # Parent f6cf96804d27e8e9c53c695d3d9632870ac9b236 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. diff -r f6cf96804d27 -r 4d52e6eb98ea mercurial/localrepo.py --- 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: