# HG changeset patch # User Patrick Mezard # Date 1296516359 -3600 # Node ID 7913a82a8cdd5fcba5b395e4ecbe09851cc53137 # Parent 1f1aeb1f5ffc97aa5da4ba206a51bb191b88ebb0 Check mercurial/third-parties push conditions before pushing This prevents pushing MQ applied patches without --force. diff --git a/hgsubversion/wrappers.py b/hgsubversion/wrappers.py --- a/hgsubversion/wrappers.py +++ b/hgsubversion/wrappers.py @@ -123,6 +123,9 @@ def push(repo, dest, force, revs): """ assert not revs, 'designated revisions for push remains unimplemented.' cmdutil.bail_if_changed(repo) + checkpush = getattr(repo, 'checkpush', None) + if checkpush: + checkpush(force, revs) ui = repo.ui old_encoding = util.swap_out_encoding() # TODO: implement --rev/#rev support