# HG changeset patch
# User Pierre-Yves David <pierre-yves.david@logilab.fr>
# Date 1341592330 -7200
#      Fri Jul 06 18:32:10 2012 +0200
# Branch stable
# Node ID 9bbcd274689829d9239978236e16610688978233
# Parent  7653f80fd7a455a586f02a3df7d840d42ad82b01
obsolete: fix bug in detection of remote obsolete support

We were checking again local...

diff --git a/hgext/obsolete.py b/hgext/obsolete.py
--- a/hgext/obsolete.py
+++ b/hgext/obsolete.py
@@ -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))