1. Greg Ward
  2. mutable-history


jcristau  committed 05ec92d

pushexperiment: guard against non-push-capable remotes

  • Participants
  • Parent commits 63ce438
  • Branches default

Comments (0)

Files changed (1)

File hgext/pushexperiment.py

View file
 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
         and remote.capable('_push_experiment_pushobsmarkers_0')):
         # push marker early to limit damage of pushing too early.