proxy-vfs: also proxy the `audit` attribute
authorPierre-Yves David <pierre-yves.david@octobus.net>
Sun, 14 Apr 2024 02:27:10 +0200
changeset 51593 b5500857e173
parent 51592 24844407fa0d
child 51594 e3a5ec2d236a
proxy-vfs: also proxy the `audit` attribute In the previous changeset, we had to do a little dance to access the useful `audit` attribute. We now provide a proper accessors to it. We don't update the code in `perf.py` because it has to remain compatible with older version of Mercurial. This will just be nicer in the future.
mercurial/vfs.py
--- a/mercurial/vfs.py	Sat Apr 13 23:40:28 2024 +0200
+++ b/mercurial/vfs.py	Sun Apr 14 02:27:10 2024 +0200
@@ -616,6 +616,10 @@
     def options(self, value):
         self.vfs.options = value
 
+    @property
+    def audit(self):
+        return self.vfs.audit
+
 
 class filtervfs(proxyvfs, abstractvfs):
     '''Wrapper vfs for filtering filenames with a function.'''