mercurial/vfs.py
changeset 33435 456626e9c3d1
parent 33412 a42369e04aee
child 33649 377e8ddaebef
--- a/mercurial/vfs.py	Wed Jul 12 10:11:02 2017 +0200
+++ b/mercurial/vfs.py	Tue Jul 11 12:27:58 2017 +0200
@@ -306,7 +306,7 @@
         if audit:
             self.audit = pathutil.pathauditor(self.base)
         else:
-            self.audit = util.always
+            self.audit = (lambda path, mode=None: True)
         self.createmode = None
         self._trustnlink = None
 
@@ -360,7 +360,7 @@
                 r = util.checkosfilename(path)
                 if r:
                     raise error.Abort("%s: %r" % (r, path))
-            self.audit(path)
+            self.audit(path, mode=mode)
         f = self.join(path)
 
         if not text and "b" not in mode: