Comments
Patch
@@ -120,9 +120,8 @@ def push(repo, remote, force=False, revs
# synchronisation.
msg = 'cannot lock source repository: %s\n' % err
pushop.ui.debug(msg)
try:
- pushop.repo.checkpush(pushop)
pushop.repo.runpyhook('beforepush', pushop=pushop)
lock = None
unbundle = pushop.remote.capable('unbundle')
if not unbundle:
@@ -1625,15 +1625,8 @@ class localrepository(object):
def pull(self, remote, heads=None, force=False):
return exchange.pull (self, remote, heads, force)
- 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.
- """
- pass
-
@unfilteredpropertycache
def prepushoutgoinghooks(self):
"""Return util.hooks consists of "(repo, remote, outgoing)"
functions, which are called before pushing changesets.