scmutil: delegate mustaudit property to the real opener
authorBryan O'Sullivan <bryano@fb.com>
Fri, 14 Sep 2012 12:04:46 -0700
changeset 17555 57eba8158736
parent 17554 5450c8ad9d98
child 17556 39c6e349dfff
scmutil: delegate mustaudit property to the real opener This will be used by an upcoming patch.
mercurial/store.py
--- 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)