Mercurial > hg
comparison tests/test-nested-repo.out @ 5200:c7e8fe11f34a
path_auditor: cache names of audited directories
We use a separate cache to avoid problems with
audit = path_auditor(repo.root)
audit("subrepo")
audit("subrepo/file")
whitelisting "subrepo" (which is fine) and then using the same whitelist
with "subrepo/file" (which is not fine).
Since we create a separate path_auditor for every path on the command line,
a "hg add dir/a dir/b dir/c" will still lstat dir 3 times just to audit
the paths.
author | Alexis S. L. Carvalho <alexis@cecm.usp.br> |
---|---|
date | Sat, 18 Aug 2007 21:36:10 -0300 |
parents | d316124ebbea |
children |
comparison
equal
deleted
inserted
replaced
5199:94e77a174f55 | 5200:c7e8fe11f34a |
---|---|
1 # should print nothing | 1 # should print nothing |
2 # should fail | 2 # should fail |
3 abort: path 'b/x' is inside repo 'b' | 3 abort: path 'b/x' is inside repo 'b' |
4 abort: path 'b/x' is inside repo 'b' | 4 abort: path 'b/x' is inside repo 'b' |
5 # should fail | |
6 abort: path 'b/x' is inside repo 'b' | |
5 # should arguably print nothing | 7 # should arguably print nothing |
6 # should fail | 8 # should fail |
7 abort: path 'b/a' is inside repo 'b' | 9 abort: path 'b/a' is inside repo 'b' |