mercurial/localrepo.py
changeset 17183 4253cfee08ef
parent 17172 12fdaa30063a
child 17192 1ac628cd7113
--- a/mercurial/localrepo.py	Wed Jul 11 18:22:07 2012 +0200
+++ b/mercurial/localrepo.py	Thu Jul 12 03:03:19 2012 +0200
@@ -1839,7 +1839,8 @@
                         if not r:
                             self.ui.warn(_('updating %s to public failed!\n')
                                             % newremotehead)
-                if 'obsolete' in self.listkeys('namespaces') and self.obsstore:
+                if ('obsolete' in remote.listkeys('namespaces')
+                    and self.obsstore):
                     data = self.listkeys('obsolete')['dump']
                     r = remote.pushkey('obsolete', 'dump', '', data)
                     if not r: