Mercurial > public > mercurial-scm > hg-stable
diff mercurial/localrepo.py @ 17183:4253cfee08ef
push: fix bug in detection of remote obsolete support
Current code check obsolete availability in local repo.
author | Pierre-Yves David <pierre-yves.david@ens-lyon.org> |
---|---|
date | Thu, 12 Jul 2012 03:03:19 +0200 |
parents | 12fdaa30063a |
children | 1ac628cd7113 |
line wrap: on
line diff
--- 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: