Mercurial > hg
view tests/test-webraw.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 | d75c68b55af8 |
children | fe5776a7443b |
line wrap: on
line source
200 Script output follows content-type: text/plain content-length: 157 content-disposition: filename=sometext.txt This is just some random text that will go inside the file and take a few lines. It is very boring to read, but computers don't care about things like that. host - - [date] "GET /?f=f165dc289438;file=sometext.txt;style=raw HTTP/1.1" 200 -