mirror of
https://github.com/facebook/sapling.git
synced 2024-10-07 23:38:50 +03:00
vfs: drop the 'mustaudit' API
There are no remaining users of 'mustaudit' so we can safely drop the API. External user are unlikely from a quick research so no deprecation is added.
This commit is contained in:
parent
a9e2461dd2
commit
100790fbf4
@ -290,21 +290,13 @@ class vfs(abstractvfs):
|
|||||||
if realpath:
|
if realpath:
|
||||||
base = os.path.realpath(base)
|
base = os.path.realpath(base)
|
||||||
self.base = base
|
self.base = base
|
||||||
self.mustaudit = audit
|
self._audit = audit
|
||||||
self.createmode = None
|
if audit:
|
||||||
self._trustnlink = None
|
|
||||||
|
|
||||||
@property
|
|
||||||
def mustaudit(self):
|
|
||||||
return self._audit
|
|
||||||
|
|
||||||
@mustaudit.setter
|
|
||||||
def mustaudit(self, onoff):
|
|
||||||
self._audit = onoff
|
|
||||||
if onoff:
|
|
||||||
self.audit = pathutil.pathauditor(self.base)
|
self.audit = pathutil.pathauditor(self.base)
|
||||||
else:
|
else:
|
||||||
self.audit = util.always
|
self.audit = util.always
|
||||||
|
self.createmode = None
|
||||||
|
self._trustnlink = None
|
||||||
|
|
||||||
@util.propertycache
|
@util.propertycache
|
||||||
def _cansymlink(self):
|
def _cansymlink(self):
|
||||||
@ -435,14 +427,6 @@ class auditvfs(object):
|
|||||||
def __init__(self, vfs):
|
def __init__(self, vfs):
|
||||||
self.vfs = vfs
|
self.vfs = vfs
|
||||||
|
|
||||||
@property
|
|
||||||
def mustaudit(self):
|
|
||||||
return self.vfs.mustaudit
|
|
||||||
|
|
||||||
@mustaudit.setter
|
|
||||||
def mustaudit(self, onoff):
|
|
||||||
self.vfs.mustaudit = onoff
|
|
||||||
|
|
||||||
@property
|
@property
|
||||||
def options(self):
|
def options(self):
|
||||||
return self.vfs.options
|
return self.vfs.options
|
||||||
|
Loading…
Reference in New Issue
Block a user