--- a/mercurial/scmutil.py Wed Jun 22 17:13:04 2011 +0300
+++ b/mercurial/scmutil.py Wed Jun 22 10:13:44 2011 +0200
@@ -169,6 +169,7 @@
'''
def __init__(self, base, audit=True):
self.base = base
+ self._audit = audit
if audit:
self.auditor = pathauditor(base)
else:
@@ -186,9 +187,10 @@
os.chmod(name, self.createmode & 0666)
def __call__(self, path, mode="r", text=False, atomictemp=False):
- r = util.checkosfilename(path)
- if r:
- raise util.Abort("%s: %r" % (r, path))
+ if self._audit:
+ r = util.checkosfilename(path)
+ if r:
+ raise util.Abort("%s: %r" % (r, path))
self.auditor(path)
f = os.path.join(self.base, path)