changeset 344:9bbcd2746898 stable 0.4.0

obsolete: fix bug in detection of remote obsolete support We were checking again local...
author Pierre-Yves David <pierre-yves.david@logilab.fr>
date Fri, 06 Jul 2012 18:32:10 +0200
parents 7653f80fd7a4
children 62de989b2a02
files hgext/obsolete.py
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/hgext/obsolete.py	Fri Jul 06 17:15:30 2012 +0200
+++ b/hgext/obsolete.py	Fri Jul 06 18:32:10 2012 +0200
@@ -1134,7 +1134,7 @@
             """wrapper around pull that pull obsolete relation"""
             self._turn_extinct_secret()
             result = opush(remote, *args, **opts)
-            if 'obsolete' in self.listkeys('namespaces') and self.obsstore:
+            if 'obsolete' in remote.listkeys('namespaces') and self.obsstore:
                 data = self.obsstore._writemarkers()
                 r = remote.pushkey('obsolete', 'dump', '',
                                    base85.b85encode(data))