evolve: do not exchange obsolescence markers when server refuse it
The server can be configured to refuse obsolescence markers exchange. See
changeset 48804a8d7472 for details about it. We respect server will in the
client.
--- a/hgext/evolve.py Wed Mar 12 12:44:33 2014 -0700
+++ b/hgext/evolve.py Wed Mar 12 13:01:32 2014 -0700
@@ -2252,6 +2252,8 @@
return None
if not pullop.remote.capable('_evoext_pullobsmarkers_0'):
return orig(pullop)
+ if 'obsolete' not in pullop.remote.listkeys('namespaces'):
+ return None # remote opted out of obsolescence marker exchange
tr = None
ui = pullop.repo.ui
ui.status("OBSEXC: pull obsolescence markers\n")