diff mercurial/pushkey.py @ 17298:59c14bf5a48c stable

pushkey: do not exchange obsole markers if feature is disabled This apply to both push and pull both when client or server.
author Pierre-Yves David <pierre-yves.david@ens-lyon.org>
date Sat, 28 Jul 2012 13:33:06 +0200
parents 28ed1c4511ce
children a2c7ae21e8f4
line wrap: on
line diff
--- a/mercurial/pushkey.py	Sat Jul 28 13:05:25 2012 +0200
+++ b/mercurial/pushkey.py	Sat Jul 28 13:33:06 2012 +0200
@@ -11,6 +11,8 @@
     n = {}
     for k in _namespaces:
         n[k] = ""
+    if not obsolete._enabled:
+        n.pop('obsolete')
     return n
 
 _namespaces = {"namespaces": (lambda *x: False, _nslist),