##// END OF EJS Templates
scmutil: simplify vfs.audit - drop wrapped vfs.auditor
Mads Kiilerich -
r18327:4aecdb91 default
parent child Browse files
Show More
@@ -252,9 +252,9 b' class vfs(abstractvfs):'
252 252 def _setmustaudit(self, onoff):
253 253 self._audit = onoff
254 254 if onoff:
255 self.auditor = pathauditor(self.base)
255 self.audit = pathauditor(self.base)
256 256 else:
257 self.auditor = util.always
257 self.audit = util.always
258 258
259 259 mustaudit = property(_getmustaudit, _setmustaudit)
260 260
@@ -276,7 +276,7 b' class vfs(abstractvfs):'
276 276 r = util.checkosfilename(path)
277 277 if r:
278 278 raise util.Abort("%s: %r" % (r, path))
279 self.auditor(path)
279 self.audit(path)
280 280 f = self.join(path)
281 281
282 282 if not text and "b" not in mode:
@@ -321,7 +321,7 b' class vfs(abstractvfs):'
321 321 return fp
322 322
323 323 def symlink(self, src, dst):
324 self.auditor(dst)
324 self.audit(dst)
325 325 linkname = self.join(dst)
326 326 try:
327 327 os.unlink(linkname)
@@ -341,9 +341,6 b' class vfs(abstractvfs):'
341 341 else:
342 342 self.write(dst, src)
343 343
344 def audit(self, path):
345 self.auditor(path)
346
347 344 def join(self, path):
348 345 if path:
349 346 return os.path.join(self.base, path)
General Comments 0
You need to be logged in to leave comments. Login now