comparison mercurial/localrepo.py @ 20924:e10000369b47

push: pass a `pushoperation` object to localrepo.checkpush The `pushoperation` object contains strictly more data the arguments currently passed to `localrepo.checkpush` we pass the new object instead. This function is used by MQ to abort push that includes MQ changesets. Note: extension that may use this function will have to align.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Tue, 01 Apr 2014 13:45:48 -0700
parents 2efdd186925d
children 5174c48ed8d8
comparison
equal deleted inserted replaced
20923:d771641b7051 20924:e10000369b47
1671 return r 1671 return r
1672 1672
1673 def pull(self, remote, heads=None, force=False): 1673 def pull(self, remote, heads=None, force=False):
1674 return exchange.pull (self, remote, heads, force) 1674 return exchange.pull (self, remote, heads, force)
1675 1675
1676 def checkpush(self, force, revs): 1676 def checkpush(self, pushop):
1677 """Extensions can override this function if additional checks have 1677 """Extensions can override this function if additional checks have
1678 to be performed before pushing, or call it if they override push 1678 to be performed before pushing, or call it if they override push
1679 command. 1679 command.
1680 """ 1680 """
1681 pass 1681 pass