[PATCH 3 of 3 FOLLOW-UP] vfs: raise NotImplementedError in abstractvfs._auditvfs
Boris Feld
boris.feld at octobus.net
Wed Jan 2 06:29:29 EST 2019
# HG changeset patch
# User Boris Feld <boris.feld at 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.
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'''
More information about the Mercurial-devel
mailing list