templates/fileannotate.tmpl
author mason@suse.com
Fri, 11 Nov 2005 18:20:22 -0800
changeset 1534 80a3d6a0af71
parent 1416 19d2776f1725
child 1606 ba625c8083d8
permissions -rw-r--r--
Optimize manifest.add Testing shows that manifest.add is spending a significant percentage of its time running calcoffsets and doing text = "".join(addlist). This patch removes the need for both of these by storying the manifest in a character array, and using a modified bisect search to find lines without the help of a separate index of line offsets. manifest.add was also reworked to push delta construction/combination into the main loop. Time to apply 2751 patches (without psyco, ext3 noatime,data=writeback): Stock hg: 4m45s real 3m32s user 55s sys patched: 2m48s real 1m53s user 43s sys quilt: 2m30s real 45s user 50s sys (quilt does much more io...)
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
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# annotate</title>
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
     3
</head>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
     4
<body>
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
     5
154
1d5f799ebe1e fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents: 153
diff changeset
     6
<div class="buttons">
1410
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
     7
<a href="?cl=#rev#">changelog</a>
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
     8
<a href="?tags=">tags</a>
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
     9
<a href="?cs=#node|short#">changeset</a>
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
    10
<a href="?mf=#manifest|short#;path=#path#">manifest</a>
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
    11
<a href="?f=#filenode|short#;file=#file#">file</a>
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
    12
<a href="?fl=#filenode|short#;file=#file#">revisions</a>
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
    13
</div>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    14
1370
710079d2a821 hgweb: remove various manifest and file hashes from display
Matt Mackall <mpm@selenic.com>
parents: 981
diff changeset
    15
<h2>Annotate #file#</h2>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    16
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    17
<table>
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    18
<tr>
167
fad9ad1ec7c7 Hide most revision numbers in hgweb
mpm@selenic.com
parents: 155
diff changeset
    19
 <td class="metatag">changeset #rev#:</td>
1410
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 1370
diff changeset
    20
 <td><a href="?cs=#node|short#">#node|short#</a></td></tr>
1416
19d2776f1725 hgweb: hide trivial parent (like in show_changeset)
Benoit Boissinot <benoit.boissinot@ens-lyon.org>
parents: 1410
diff changeset
    21
#parent%fileannotateparent#
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    22
<tr>
154
1d5f799ebe1e fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents: 153
diff changeset
    23
 <td class="metatag">author:</td>
201
f918a6fa2572 hgweb: add template filters, template style maps, and raw pages
mpm@selenic.com
parents: 168
diff changeset
    24
 <td>#author|obfuscate#</td></tr>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    25
<tr>
154
1d5f799ebe1e fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents: 153
diff changeset
    26
 <td class="metatag">date:</td>
236
85f0420fd848 Removed extra closing brace from date string.
Thomas Arendsen Hein <thomas@intevation.de>
parents: 201
diff changeset
    27
 <td>#date|date# (#date|age# ago)</td></tr>
359
0c4688e9ee5c hgweb: add file permissions
mpm@selenic.com
parents: 241
diff changeset
    28
<tr>
0c4688e9ee5c hgweb: add file permissions
mpm@selenic.com
parents: 241
diff changeset
    29
 <td class="metatag">permissions:</td>
0c4688e9ee5c hgweb: add file permissions
mpm@selenic.com
parents: 241
diff changeset
    30
 <td>#permissions|permissions#</td></tr>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    31
</table>
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    32
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
    33
<br/>
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    34
154
1d5f799ebe1e fixed problem with head/body tags, added dtd, fixed table attributes
jake@edge2.net
parents: 153
diff changeset
    35
<table cellspacing="0" cellpadding="0">
977
289975641886 hgweb: Changed annotate page to list format syntax
Josef "Jeff" Sipek <jeffpc@optonline.net>
parents: 570
diff changeset
    36
#annotate%annotateline#
138
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    37
</table>
c77a679e9cfa Revamped templated hgweb
mpm@selenic.com
parents:
diff changeset
    38
142
529bf610092e Prettify the web interface
mpm@selenic.com
parents: 138
diff changeset
    39
#footer#