comparison mercurial/localrepo.py @ 22616:cda85cfc8252

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Thu, 25 Sep 2014 02:21:59 -0700
parents e6e7ef68c879
children 4d52e6eb98ea
comparison
equal deleted inserted replaced
22615:4f14303e8954 22616:cda85cfc8252
1590 functions, which are called before pushing changesets. 1590 functions, which are called before pushing changesets.
1591 """ 1591 """
1592 return util.hooks() 1592 return util.hooks()
1593 1593
1594 def push(self, remote, force=False, revs=None, newbranch=False): 1594 def push(self, remote, force=False, revs=None, newbranch=False):
1595 return exchange.push(self, remote, force, revs, newbranch) 1595 return exchange.push(self, remote, force, revs, newbranch).cgresult
1596 1596
1597 def stream_in(self, remote, requirements): 1597 def stream_in(self, remote, requirements):
1598 lock = self.lock() 1598 lock = self.lock()
1599 try: 1599 try:
1600 # Save remote branchmap. We will use it later 1600 # Save remote branchmap. We will use it later