def augmented_push(orig, repo, remote, *args, **kwargs):
"""push wrapped that call the wire protocol command"""
+ if not remote.canpush():
+ raise util.Abort(_("destination does not support push"))
if (obsolete._enabled and repo.obsstore
# push marker early to limit damage of pushing too early.