diff -r cdf1532d89c6 -r 4253cfee08ef mercurial/localrepo.py --- 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: