Mercurial > public > mercurial-scm > hg-stable
diff mercurial/vfs.py @ 51618:b5500857e173
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.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Sun, 14 Apr 2024 02:27:10 +0200 |
parents | 187c5769a629 |
children | ba205f944cb4 |
line wrap: on
line diff
--- 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.'''