Pierre-Yves David  committed d2fa106

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

  • Participants
  • Parent commits 48804a8
  • Branches default

Comments (0)

Files changed (1)

File hgext/

         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")