comparison tests/test-nested-repo @ 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
11 11
12 echo '# should fail' 12 echo '# should fail'
13 hg st b/x 13 hg st b/x
14 hg add b/x 14 hg add b/x
15 15
16 echo '# should fail'
17 hg add b b/x
18 hg st
19
16 echo '# should arguably print nothing' 20 echo '# should arguably print nothing'
17 hg st b 21 hg st b
18 22
19 echo a > a 23 echo a > a
20 hg ci -Ama a 24 hg ci -Ama a