diff mercurial/store.py @ 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 0cec762790ed
children b42b0729744d
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)