# HG changeset patch # User Julien Cristau # Date 1370359067 -7200 # Node ID 05ec92d8150d8e2f39424d7f78ff49f71b3bcb9e # Parent 63ce4384be50fbd09489d183cb3d11109e368991 pushexperiment: guard against non-push-capable remotes diff -r 63ce4384be50 -r 05ec92d8150d hgext/pushexperiment.py --- 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.