equal
deleted
inserted
replaced
510 os.path.isdir(os.path.join(curpath, '.hg'))): |
510 os.path.isdir(os.path.join(curpath, '.hg'))): |
511 raise Abort(_('path %r is inside repo %r') % |
511 raise Abort(_('path %r is inside repo %r') % |
512 (path, prefix)) |
512 (path, prefix)) |
513 parts.pop() |
513 parts.pop() |
514 prefixes = [] |
514 prefixes = [] |
515 for n in range(len(parts)): |
515 while parts: |
516 prefix = os.sep.join(parts) |
516 prefix = os.sep.join(parts) |
517 if prefix in self.auditeddir: |
517 if prefix in self.auditeddir: |
518 break |
518 break |
519 check(prefix) |
519 check(prefix) |
520 prefixes.append(prefix) |
520 prefixes.append(prefix) |