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