# HG changeset patch # User Pierre-Yves David # Date 2014-09-25 09:21:59 # Node ID cda85cfc82528af4320362b7e8a42a4a9c277afc # Parent 4f14303e8954c1bfd334af1b455fe481350b98b9 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. diff --git a/mercurial/exchange.py b/mercurial/exchange.py --- a/mercurial/exchange.py +++ b/mercurial/exchange.py @@ -211,7 +211,7 @@ def push(repo, remote, force=False, revs if locallock is not None: locallock.release() - return pushop.cgresult + return pushop # list of steps to perform discovery before push pushdiscoveryorder = [] diff --git a/mercurial/localrepo.py b/mercurial/localrepo.py --- a/mercurial/localrepo.py +++ b/mercurial/localrepo.py @@ -1592,7 +1592,7 @@ class localrepository(object): 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()