mirror of
https://github.com/facebook/sapling.git
synced 2024-10-10 08:47:12 +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.
29 lines
290 B
Bash
Executable File
29 lines
290 B
Bash
Executable File
#!/bin/sh
|
|
|
|
hg init a
|
|
cd a
|
|
hg init b
|
|
echo x > b/x
|
|
|
|
echo '# should print nothing'
|
|
hg add b
|
|
hg st
|
|
|
|
echo '# should fail'
|
|
hg st b/x
|
|
hg add b/x
|
|
|
|
echo '# should fail'
|
|
hg add b b/x
|
|
hg st
|
|
|
|
echo '# should arguably print nothing'
|
|
hg st b
|
|
|
|
echo a > a
|
|
hg ci -Ama a
|
|
|
|
echo '# should fail'
|
|
hg mv a b
|
|
hg st
|