Patchwork [3,of,3,FOLLOW-UP] vfs: raise NotImplementedError in abstractvfs._auditvfs

login
register
mail settings
Submitter Boris Feld
Date Jan. 2, 2019, 11:29 a.m.
Message ID <59cffe02c92a464eece6.1546428569@Laptop-Boris.lan>
Download mbox | patch
Permalink /patch/37420/
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 1546421474 -3600
#      Wed Jan 02 10:31:14 2019 +0100
# Node ID 59cffe02c92a464eece6776d8eae074fea171c6a
# Parent  9b2299aff37aeacb31261f8d224f4b754e91e503
# EXP-Topic vfs-audit
# Available At https://bitbucket.org/octobus/mercurial-devel/
#              hg pull https://bitbucket.org/octobus/mercurial-devel/ -r 59cffe02c92a
vfs: raise NotImplementedError in abstractvfs._auditvfs

This make sure that auditing is implemented.

Patch

diff --git a/mercurial/vfs.py b/mercurial/vfs.py
--- a/mercurial/vfs.py
+++ b/mercurial/vfs.py
@@ -47,7 +47,7 @@  class abstractvfs(object):
         raise NotImplementedError('attempted instantiating ' + str(type(self)))
 
     def _auditpath(self, path, mode):
-        pass
+        raise NotImplementedError
 
     def tryread(self, path):
         '''gracefully return an empty string for missing files'''