changeset 17555:57eba8158736

scmutil: delegate mustaudit property to the real opener This will be used by an upcoming patch.
author Bryan O'Sullivan <bryano@fb.com>
date Fri, 14 Sep 2012 12:04:46 -0700
parents 5450c8ad9d98
children 39c6e349dfff
files mercurial/store.py
diffstat 1 files changed, 8 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/mercurial/store.py	Fri Sep 14 12:04:35 2012 -0700
+++ b/mercurial/store.py	Fri Sep 14 12:04:46 2012 -0700
@@ -373,6 +373,14 @@
         self.fncache = fnc
         self.encode = encode
 
+    def _getmustaudit(self):
+        return self.opener.mustaudit
+
+    def _setmustaudit(self, onoff):
+        self.opener.mustaudit = onoff
+
+    mustaudit = property(_getmustaudit, _setmustaudit)
+
     def __call__(self, path, mode='r', *args, **kw):
         if mode not in ('r', 'rb') and path.startswith('data/'):
             self.fncache.add(path)