changeset 883:d2fa1061df16

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.
author Pierre-Yves David <pierre-yves.david@fb.com>
date Wed, 12 Mar 2014 13:01:32 -0700
parents 48804a8d7472
children 4ae115cf3efd
files hgext/evolve.py
diffstat 1 files changed, 2 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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")