##// END OF EJS Templates
log: speed up hg log for untracked files (issue1340)...
log: speed up hg log for untracked files (issue1340) 'hg log' on untracked files tends to be fairly slow. The root cause is that we end up using the 'slowpath' when we can't find a revlog for the files listed. This could happen if the file in question is an untracked file, or it is a directory. This diff tries to speed up 'hg log' (by avoiding the slowpath) for files if we can determine if that file is not (and was never) a directory. We use the previously added store.__contains__ methods to test if the directory exists (or existed) in the store. To avoid changing any existing semantics, this 'optimization' kicks in only when none of the files listed as arguments to the hg log command exist in the store.

File last commit:

r15375:fe9d36a6 stable
r17746:6d218e47 default
Show More
filerevision.tmpl
47 lines | 1.4 KiB | application/x-cheetah | CheetahLexer
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 {header}
<title>{repo|escape}:{file|escape}</title>
</head>
<body>
<div class="buttons">
<a href="{url}log/{rev}{sessionvars%urlparameter}">changelog</a>
<a href="{url}shortlog/{rev}{sessionvars%urlparameter}">shortlog</a>
<a href="{url}graph{sessionvars%urlparameter}">graph</a>
<a href="{url}tags{sessionvars%urlparameter}">tags</a>
<a href="{url}branches{sessionvars%urlparameter}">branches</a>
<a href="{url}rev/{node|short}{sessionvars%urlparameter}">changeset</a>
<a href="{url}file/{node|short}{path|urlescape}{sessionvars%urlparameter}">files</a>
<a href="{url}log/{node|short}/{file|urlescape}{sessionvars%urlparameter}">revisions</a>
<a href="{url}annotate/{node|short}/{file|urlescape}{sessionvars%urlparameter}">annotate</a>
<a href="{url}raw-file/{node|short}/{file|urlescape}">raw</a>
Augie Fackler
hgweb: add help link to templates missed in ead4e21f49f1
r12680 <a href="{url}help{sessionvars%urlparameter}">help</a>
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 </div>
<h2>{file|escape}</h2>
<table>
<tr>
<td class="metatag">changeset {rev}:</td>
<td><a href="{url}rev/{node|short}{sessionvars%urlparameter}">{node|short}</a></td></tr>
{parent%filerevparent}
{child%filerevchild}
<tr>
<td class="metatag">author:</td>
<td>{author|obfuscate}</td></tr>
<tr>
<td class="metatag">date:</td>
Brodie Rao
hgweb: fix dynamic date calculation not working under Safari...
r15375 <td class="date age">{date|rfc822date}</td></tr>
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 <tr>
<td class="metatag">permissions:</td>
<td>{permissions|permissions}</td></tr>
<tr>
<td class="metatag">description:</td>
<td>{desc|strip|escape|addbreaks|nonempty}</td>
</tr>
</table>
<pre>
{text%fileline}
</pre>
{footer}