evolve: do not exchange obsolescence markers when server refuse it
authorPierre-Yves David <pierre-yves.david@fb.com>
Wed, 12 Mar 2014 13:01:32 -0700
changeset 883 d2fa1061df16
parent 882 48804a8d7472
child 884 4ae115cf3efd
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.
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")