push: `exchange.push` now returns the `pushoperation` object
Returning the pushop object gives access to more information (upcoming bookmark
push result for example). `localrepo.push` currently extracts the `cgresult` for
callers.
--- a/mercurial/exchange.py Thu Sep 25 00:55:39 2014 -0700
+++ b/mercurial/exchange.py Thu Sep 25 02:21:59 2014 -0700
@@ -211,7 +211,7 @@
if locallock is not None:
locallock.release()
- return pushop.cgresult
+ return pushop
# list of steps to perform discovery before push
pushdiscoveryorder = []
--- a/mercurial/localrepo.py Thu Sep 25 00:55:39 2014 -0700
+++ b/mercurial/localrepo.py Thu Sep 25 02:21:59 2014 -0700
@@ -1592,7 +1592,7 @@
return util.hooks()
def push(self, remote, force=False, revs=None, newbranch=False):
- return exchange.push(self, remote, force, revs, newbranch)
+ return exchange.push(self, remote, force, revs, newbranch).cgresult
def stream_in(self, remote, requirements):
lock = self.lock()