Mercurial > hg
view templates/search.tmpl @ 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 | 1196998c62e3 |
children | 673d8a6bc709 |
line wrap: on
line source
#header# <title>#repo|escape#: searching for #query|escape#</title> </head> <body> <div class="buttons"> <a href="#url#log{sessionvars%urlparameter}">changelog</a> <a href="#url#shortlog{sessionvars%urlparameter}">shortlog</a> <a href="#url#tags{sessionvars%urlparameter}">tags</a> <a href="#url#file/#node|short#{sessionvars%urlparameter}">manifest</a> #archives%archiveentry# </div> <h2>searching for #query|escape#</h2> <form> {sessionvars%hiddenformentry} <p> search: <input name="rev" type="text" width="30" value="#query|escape#"> </p> </form> #entries# <form> {sessionvars%hiddenformentry} <p> search: <input name="rev" type="text" width="30" value="#query|escape#"> </p> </form> #footer#