hgext/pushexperiment.py
changeset 732 05ec92d8150d
parent 731 63ce4384be50
child 1217 196c650d5ba9
--- a/hgext/pushexperiment.py	Tue Jun 04 17:16:09 2013 +0200
+++ b/hgext/pushexperiment.py	Tue Jun 04 17:17:47 2013 +0200
@@ -73,6 +73,8 @@
 
 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.