comparison tests/test-nested-repo.out @ 5141:d316124ebbea

Make audit_path more stringent. The following properties of a path are now checked for: - under top-level .hg - starts at the root of a windows drive - contains ".." - traverses a symlink (e.g. a/symlink_here/b) - inside a nested repository If any of these is true, the path is rejected. The check for traversing a symlink is arguably stricter than necessary; perhaps we should be checking for symlinks that point outside the repository.
author Bryan O'Sullivan <bos@serpentine.com>
date Fri, 10 Aug 2007 10:46:03 -0700
parents 74f70f2e08aa
children c7e8fe11f34a
comparison
equal deleted inserted replaced
5140:f6c520fd70cf 5141:d316124ebbea
1 # should print nothing 1 # should print nothing
2 # should print ? b/x 2 # should fail
3 ? b/x 3 abort: path 'b/x' is inside repo 'b'
4 # should print A b/x 4 abort: path 'b/x' is inside repo 'b'
5 A b/x 5 # should arguably print nothing
6 # should forget b/x 6 # should fail
7 forgetting b/x 7 abort: path 'b/a' is inside repo 'b'
8 # should print nothing