mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 00:45:18 +03:00
3b929dfbb5
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.
10 lines
245 B
Plaintext
10 lines
245 B
Plaintext
# should print nothing
|
|
# should fail
|
|
abort: path 'b/x' is inside repo 'b'
|
|
abort: path 'b/x' is inside repo 'b'
|
|
# should fail
|
|
abort: path 'b/x' is inside repo 'b'
|
|
# should arguably print nothing
|
|
# should fail
|
|
abort: path 'b/a' is inside repo 'b'
|