comparison mercurial/exchange.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 a26dfa7f534c
children 5174c48ed8d8
comparison
equal deleted inserted replaced
20923:d771641b7051 20924:e10000369b47
93 # We do not abort the push, but just disable the local phase 93 # We do not abort the push, but just disable the local phase
94 # synchronisation. 94 # synchronisation.
95 msg = 'cannot lock source repository: %s\n' % err 95 msg = 'cannot lock source repository: %s\n' % err
96 pushop.ui.debug(msg) 96 pushop.ui.debug(msg)
97 try: 97 try:
98 pushop.repo.checkpush(pushop.force, pushop.revs) 98 pushop.repo.checkpush(pushop)
99 lock = None 99 lock = None
100 unbundle = pushop.remote.capable('unbundle') 100 unbundle = pushop.remote.capable('unbundle')
101 if not unbundle: 101 if not unbundle:
102 lock = pushop.remote.lock() 102 lock = pushop.remote.lock()
103 try: 103 try: