Mercurial > public > mercurial-scm > hg-stable
diff 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 |
line wrap: on
line diff
--- a/mercurial/localrepo.py Fri Mar 28 14:43:30 2014 -0700 +++ b/mercurial/localrepo.py Tue Apr 01 13:45:48 2014 -0700 @@ -1673,7 +1673,7 @@ def pull(self, remote, heads=None, force=False): return exchange.pull (self, remote, heads, force) - def checkpush(self, force, revs): + def checkpush(self, pushop): """Extensions can override this function if additional checks have to be performed before pushing, or call it if they override push command.