Show More
@@ -100,8 +100,10 b' class pathauditor(object):' | |||
|
100 | 100 | parts.pop() |
|
101 | 101 | normparts.pop() |
|
102 | 102 | # It's important that we check the path parts starting from the root. |
|
103 | # This means we won't accidentally traverse a symlink into some other | |
|
104 | # filesystem (which is potentially expensive to access). | |
|
103 | # We don't want to add "foo/bar/baz" to auditeddir before checking if | |
|
104 | # there's a "foo/.hg" directory. This also means we won't accidentally | |
|
105 | # traverse a symlink into some other filesystem (which is potentially | |
|
106 | # expensive to access). | |
|
105 | 107 | for i in range(len(parts)): |
|
106 | 108 | prefix = pycompat.ossep.join(parts[: i + 1]) |
|
107 | 109 | normprefix = pycompat.ossep.join(normparts[: i + 1]) |
General Comments 0
You need to be logged in to leave comments.
Login now