diff -r 714f6ef43f3a -r bb8278b289ee mercurial/localrepo.py --- a/mercurial/localrepo.py Tue Oct 14 13:17:35 2014 -0700 +++ b/mercurial/localrepo.py Tue Oct 14 13:20:31 2014 -0700 @@ -406,7 +406,8 @@ kwargs = {} if defaultformat is not None: kwargs['defaultformat'] = defaultformat - store = obsolete.obsstore(self.sopener, **kwargs) + store = obsolete.obsstore(self.sopener, readonly=not obsolete._enabled, + **kwargs) if store and not obsolete._enabled: # message is rare enough to not be translated msg = 'obsolete feature not enabled but %i markers found!\n'