##// 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:

r12680:d664547e default
r17746:6d218e47 default
Show More
changelog.tmpl
44 lines | 1.3 KiB | application/x-cheetah | CheetahLexer
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 {header}
<title>{repo|escape}: changelog</title>
<link rel="alternate" type="application/atom+xml"
href="{url}atom-log" title="Atom feed for {repo|escape}">
<link rel="alternate" type="application/rss+xml"
href="{url}rss-log" title="RSS feed for {repo|escape}">
</head>
<body>
<div class="buttons">
<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}file/{node|short}{sessionvars%urlparameter}">files</a>
{archives%archiveentry}
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 <a type="application/rss+xml" href="{url}rss-log">rss</a>
<a type="application/atom+xml" href="{url}atom-log" title="Atom feed for {repo|escape}">atom</a>
</div>
<h2>changelog for {repo|escape}</h2>
<form action="{url}log">
{sessionvars%hiddenformentry}
<p>
<label for="search1">search:</label>
<input name="rev" id="search1" type="text" size="30">
Nicolas Dumazet
hgweb: changenav: separate pages before and after the current position...
r10254 navigate: <small class="navigate">{changenav%nav}</small>
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 </p>
</form>
{entries%changelogentry}
<form action="{url}log">
{sessionvars%hiddenformentry}
<p>
<label for="search2">search:</label>
<input name="rev" id="search2" type="text" size="30">
Nicolas Dumazet
hgweb: changenav: separate pages before and after the current position...
r10254 navigate: <small class="navigate">{changenav%nav}</small>
Dan Villiom Podlaski Christiansen
setup: install translation files as package data...
r9999 </p>
</form>
{footer}