annotate templates/filelog.tmpl @ 1031:503aaf19a040

Rewrite log command. New version is faster and more featureful. The original implementation of log walked backwards through history, which had terrible behaviour. It took several minutes to view complete kernel change history on a fast machine, for example. The rewrite uses a windowed approach to walk hunks of history forwards, while still giving results in reverse order. This reduces run time from five minutes to five seconds on my system. In addition, the rewrite uses our normal name handling mechanisms, so you can run a command like "hg log net/ipv4/**.c" and get a useful answer. It optimises for three different cases (no arguments, only files, and anything goes), so it performs well in all circumstances I've tested.
author Bryan O'Sullivan <bos@serpentine.com>
date Wed, 24 Aug 2005 12:39:10 -0700
parents 4f81068ed8cd
children 17703aa4491e
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
1 #header#
201
f918a6fa2572 hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents: 168
diff changeset
2 <title>#repo|escape#: #file# history</title>
661
148f642d1f8e Add rss tag in the changelog/filelog html template.
kreijack@inwind.REMOVEME.it
parents: 599
diff changeset
3 <link rel="alternate" type="application/rss+xml"
148f642d1f8e Add rss tag in the changelog/filelog html template.
kreijack@inwind.REMOVEME.it
parents: 599
diff changeset
4 href="?cmd=filelog;file=#file#;filenode=0;style=rss" title="RSS feed for #repo|escape#:#file#">
148f642d1f8e Add rss tag in the changelog/filelog html template.
kreijack@inwind.REMOVEME.it
parents: 599
diff changeset
5 </head>
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
6 </head>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
7 <body>
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
8
154
1d5f799ebe1e fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents: 153
diff changeset
9 <div class="buttons">
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
10 <a href="?cmd=changelog">changelog</a>
168
65cf1b0cfe86 hgweb: add tags links and manifest links
mpm@selenic.com
parents: 155
diff changeset
11 <a href="?cmd=tags">tags</a>
153
e8a360cd5a9f changed pos to rev for changelog cmd, changed & to ;
jake@edge2.net
parents: 142
diff changeset
12 <a href="?cmd=file;file=#file#;filenode=#filenode#">file</a>
e8a360cd5a9f changed pos to rev for changelog cmd, changed & to ;
jake@edge2.net
parents: 142
diff changeset
13 <a href="?cmd=annotate;file=#file#;filenode=#filenode#">annotate</a>
661
148f642d1f8e Add rss tag in the changelog/filelog html template.
kreijack@inwind.REMOVEME.it
parents: 599
diff changeset
14 <a type="application/rss+xml" href="?cmd=filelog;file=#file#;filenode=0;style=rss">rss</a>
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
15 </div>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
16
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
17 <h2>#file# revision history</h2>
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
18
978
ea67e5b37043 hgweb: Changed file revision page to list format syntax
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 661
diff changeset
19 #entries%filelogentry#
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
20
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
21 #footer#