diff 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
line wrap: on
line diff
--- a/mercurial/exchange.py	Fri Mar 28 14:43:30 2014 -0700
+++ b/mercurial/exchange.py	Tue Apr 01 13:45:48 2014 -0700
@@ -95,7 +95,7 @@
         msg = 'cannot lock source repository: %s\n' % err
         pushop.ui.debug(msg)
     try:
-        pushop.repo.checkpush(pushop.force, pushop.revs)
+        pushop.repo.checkpush(pushop)
         lock = None
         unbundle = pushop.remote.capable('unbundle')
         if not unbundle: