mercurial/localrepo.py
changeset 22950 bb8278b289ee
parent 22948 c136e26953aa
child 22951 6c86c673dde6
--- 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'