[PATCH 02 of 10] scmutil: delegate mustaudit property to the real opener

Bryan O'Sullivan bos at serpentine.com
Thu Sep 13 14:01:15 CDT 2012


# HG changeset patch
# User Bryan O'Sullivan <bryano at fb.com>
# Date 1347562628 25200
# Node ID d89e56d72ecf0ef69b1650aac774667297969622
# Parent  5d2ae7e9a2bc1dac14143ac9e9a3885ba0049139
scmutil: delegate mustaudit property to the real opener

diff --git a/mercurial/store.py b/mercurial/store.py
--- a/mercurial/store.py
+++ b/mercurial/store.py
@@ -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)


More information about the Mercurial-devel mailing list