mercurial/pathutil.py
changeset 30332 318a24b52eeb
parent 29889 6f447b9ec263
child 30614 cfe66dcf45c0
equal deleted inserted replaced
30331:b19291e5d506 30332:318a24b52eeb
    82 
    82 
    83         parts.pop()
    83         parts.pop()
    84         normparts.pop()
    84         normparts.pop()
    85         prefixes = []
    85         prefixes = []
    86         # It's important that we check the path parts starting from the root.
    86         # It's important that we check the path parts starting from the root.
    87         # This means we won't accidentaly traverse a symlink into some other
    87         # This means we won't accidentally traverse a symlink into some other
    88         # filesystem (which is potentially expensive to access).
    88         # filesystem (which is potentially expensive to access).
    89         for i in range(len(parts)):
    89         for i in range(len(parts)):
    90             prefix = os.sep.join(parts[:i + 1])
    90             prefix = os.sep.join(parts[:i + 1])
    91             normprefix = os.sep.join(normparts[:i + 1])
    91             normprefix = os.sep.join(normparts[:i + 1])
    92             if normprefix in self.auditeddir:
    92             if normprefix in self.auditeddir: