Patchwork [2,of,3,FOLLOW-UP] vfs: handle _auditpath in proxyvfs

login
register
mail settings
Submitter Boris Feld
Date Jan. 2, 2019, 11:29 a.m.
Message ID <9b2299aff37aeacb3126.1546428568@Laptop-Boris.lan>
Download mbox | patch
Permalink /patch/37419/
State Accepted
Headers show

Comments

Boris Feld - Jan. 2, 2019, 11:29 a.m.
# HG changeset patch
# User Boris Feld <boris.feld@octobus.net>
# Date 1546421376 -3600
#      Wed Jan 02 10:29:36 2019 +0100
# Node ID 9b2299aff37aeacb31261f8d224f4b754e91e503
# Parent  b33239d75ded3c23d46fe50bb04e0dd3aac9ef9b
# EXP-Topic vfs-audit
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 9b2299aff37a
vfs: handle _auditpath in proxyvfs

Just forward the call to the underlying vfs.

Patch

diff --git a/mercurial/vfs.py b/mercurial/vfs.py
--- a/mercurial/vfs.py
+++ b/mercurial/vfs.py
@@ -473,6 +473,9 @@  class proxyvfs(abstractvfs):
     def __init__(self, vfs):
         self.vfs = vfs
 
+    def _auditpath(self, path, mode):
+        return self.vfs._auditpath(path, mode)
+
     @property
     def options(self):
         return self.vfs.options