# HG changeset patch # User Pierre-Yves David # Date 1394654492 25200 # Node ID d2fa1061df1648bdb98897741378f5f09482bb43 # Parent 48804a8d7472dcac8c2bce10307f4f5c8f524be0 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. diff -r 48804a8d7472 -r d2fa1061df16 hgext/evolve.py --- 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")