Commits

jcristau committed 05ec92d

pushexperiment: guard against non-push-capable remotes

Comments (0)

Files changed (1)

hgext/pushexperiment.py

 
 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.