annotate templates/filelog.tmpl @ 1907:7718885070b1

let commands that show changesets use templates. mechanism is same as hgweb templates. old show_changeset code is still used for now if no template given, because it is faster than template code when verbose or debug. simple template can be given on command line using -t, --template. example: hg log -t '{author|person}\n' complex template can be put in template map file, given on command line using --map-file. we give two example map files: map-log.compact prints 3 lines of output for every change. map-log.verbose prints exact same output as default "hg log -v". map files are searched where user says, then in template path as backup. example: hg log --map-file map-log.compact defaults can be set in hgrc with ui.logtemplate and ui.logmap.
author Vadim Gelfer <vadim.gelfer@gmail.com>
date Mon, 27 Feb 2006 13:18:57 -0800
parents f2ebd5251e88
children 46b19175fec6
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#
1650
f2ebd5251e88 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
Peter van Dijk <peter@dataloss.nl>
parents: 1433
diff changeset
2 <title>#repo|escape#: #file|escape# 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"
1650
f2ebd5251e88 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
Peter van Dijk <peter@dataloss.nl>
parents: 1433
diff changeset
4 href="?fl=0;file=#file|urlescape#;style=rss" title="RSS feed for #repo|escape#:#file#">
661
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">
1433
70a3b6a505c6 hgweb: fix broken filelog->changelog link
TK Soh <teekaysoh@yahoo.com>
parents: 1410
diff changeset
10 <a href="?cl=tip">changelog</a>
1410
17703aa4491e hgweb: shorten all the URLs in the standard templates
Matt Mackall <mpm@selenic.com>
parents: 981
diff changeset
11 <a href="?tags=">tags</a>
1650
f2ebd5251e88 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
Peter van Dijk <peter@dataloss.nl>
parents: 1433
diff changeset
12 <a href="?f=#filenode|short#;file=#file|urlescape#">file</a>
f2ebd5251e88 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
Peter van Dijk <peter@dataloss.nl>
parents: 1433
diff changeset
13 <a href="?fa=#filenode|short#;file=#file|urlescape#">annotate</a>
f2ebd5251e88 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
Peter van Dijk <peter@dataloss.nl>
parents: 1433
diff changeset
14 <a type="application/rss+xml" href="?fl=0;file=#file|urlescape#;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
1650
f2ebd5251e88 changed template escape filter, added urlescape filter; audited all templates for insertion bugs; added note to manifest.py about newlines in filenames
Peter van Dijk <peter@dataloss.nl>
parents: 1433
diff changeset
17 <h2>#file|escape# revision history</h2>
138
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#