mercurial/localrepo.py
branchstable
changeset 17297 6955d69a52a4
parent 17295 1f08ecc7febb
child 17298 59c14bf5a48c
--- a/mercurial/localrepo.py	Sat Jul 28 13:19:06 2012 +0200
+++ b/mercurial/localrepo.py	Sat Jul 28 13:05:25 2012 +0200
@@ -289,6 +289,10 @@
     @storecache('obsstore')
     def obsstore(self):
         store = obsolete.obsstore(self.sopener)
+        if store and not obsolete._enabled:
+            # message is rare enough to not be stranlated
+            msg = 'obsolete feature not enabled but %i markers found!\n'
+            self.ui.warn(msg % len(list(store)))
         return store
 
     @propertycache