Show More
@@ -602,9 +602,6 class path_auditor(object): | |||
|
602 | 602 | prefixes.append(prefix) |
|
603 | 603 | parts.pop() |
|
604 | 604 | |
|
605 | r = checkosfilename(path) | |
|
606 | if r: | |
|
607 | raise Abort("%s: %s" % (r, path)) | |
|
608 | 605 | self.audited.add(path) |
|
609 | 606 | # only add prefixes to the cache after checking everything: we don't |
|
610 | 607 | # want to add "foo/bar/baz" before checking if there's a "foo/.hg" |
@@ -916,6 +913,9 class opener(object): | |||
|
916 | 913 | os.chmod(name, self.createmode & 0666) |
|
917 | 914 | |
|
918 | 915 | def __call__(self, path, mode="r", text=False, atomictemp=False): |
|
916 | r = checkosfilename(path) | |
|
917 | if r: | |
|
918 | raise Abort("%s: %s" % (r, path)) | |
|
919 | 919 | self.auditor(path) |
|
920 | 920 | f = os.path.join(self.base, path) |
|
921 | 921 |
General Comments 0
You need to be logged in to leave comments.
Login now