author | Patrick Mezard <pmezard@gmail.com> |
Sat, 02 Jan 2010 16:42:00 +0100 | |
changeset 10199 | c2e2a5e6c36b |
parent 10066 | 788e7d04c594 |
child 10759 | 9f6e30a89f11 |
permissions | -rw-r--r-- |
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
1 |
Mercurial allows you to customize output of commands through |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
2 |
templates. You can either pass in a template from the command |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
3 |
line, via the --template option, or select an existing |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
4 |
template-style (--style). |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
5 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
6 |
You can customize output for any "log-like" command: log, |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
7 |
outgoing, incoming, tip, parents, heads and glog. |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
8 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
9 |
Three styles are packaged with Mercurial: default (the style used |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
10 |
when no explicit preference is passed), compact and changelog. |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
11 |
Usage:: |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
12 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
13 |
$ hg log -r1 --style changelog |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
14 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
15 |
A template is a piece of text, with markup to invoke variable |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
16 |
expansion:: |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
17 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
18 |
$ hg log -r1 --template "{node}\n" |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
19 |
b56ce7b07c52de7d5fd79fb89701ea538af65746 |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
20 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
21 |
Strings in curly braces are called keywords. The availability of |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
22 |
keywords depends on the exact context of the templater. These |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
23 |
keywords are usually available for templating a log-like command: |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
24 |
|
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
25 |
:author: String. The unmodified author of the changeset. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
26 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
27 |
:branches: String. The name of the branch on which the changeset was |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
28 |
committed. Will be empty if the branch name was default. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
29 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
30 |
:date: Date information. The date when the changeset was committed. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
31 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
32 |
:desc: String. The text of the changeset description. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
33 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
34 |
:diffstat: String. Statistics of changes with the following format: |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
35 |
"modified files: +added/-removed lines" |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
36 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
37 |
:files: List of strings. All files modified, added, or removed by this |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
38 |
changeset. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
39 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
40 |
:file_adds: List of strings. Files added by this changeset. |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
41 |
|
10061
9e2ab10728a2
Make {file_copies} usable as a --template key
Patrick Mezard <pmezard@gmail.com>
parents:
9999
diff
changeset
|
42 |
:file_copies: List of strings. Files copied in this changeset with |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
43 |
their sources. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
44 |
|
10061
9e2ab10728a2
Make {file_copies} usable as a --template key
Patrick Mezard <pmezard@gmail.com>
parents:
9999
diff
changeset
|
45 |
:file_copies_switch: List of strings. Like "file_copies" but displayed |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
46 |
only if the --copied switch is set. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
47 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
48 |
:file_mods: List of strings. Files modified by this changeset. |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
49 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
50 |
:file_dels: List of strings. Files removed by this changeset. |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
51 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
52 |
:node: String. The changeset identification hash, as a 40-character |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
53 |
hexadecimal string. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
54 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
55 |
:parents: List of strings. The parents of the changeset. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
56 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
57 |
:rev: Integer. The repository-local changeset revision number. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
58 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
59 |
:tags: List of strings. Any tags associated with the changeset. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
60 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
61 |
:latesttag: String. Most recent global tag in the ancestors of this |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
62 |
changeset. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
63 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
64 |
:latesttagdistance: Integer. Longest path to the latest tag. |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
65 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
66 |
The "date" keyword does not produce human-readable output. If you |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
67 |
want to use a date in your output, you can use a filter to process |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
68 |
it. Filters are functions which return a string based on the input |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
69 |
variable. You can also use a chain of filters to get the desired |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
70 |
output:: |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
71 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
72 |
$ hg tip --template "{date|isodate}\n" |
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
73 |
2008-08-21 18:22 +0000 |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
74 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
75 |
List of filters: |
9539
c904e76e3834
help: move help topics from mercurial/help.py to help/*.txt
Martin Geisler <mg@lazybytes.net>
parents:
diff
changeset
|
76 |
|
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
77 |
:addbreaks: Any text. Add an XHTML "<br />" tag before the end of |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
78 |
every line except the last. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
79 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
80 |
:age: Date. Returns a human-readable date/time difference between the |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
81 |
given date/time and the current date/time. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
82 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
83 |
:basename: Any text. Treats the text as a path, and returns the last |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
84 |
component of the path after splitting by the path separator |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
85 |
(ignoring trailing separators). For example, "foo/bar/baz" becomes |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
86 |
"baz" and "foo/bar//" becomes "bar". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
87 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
88 |
:stripdir: Treat the text as path and strip a directory level, if |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
89 |
possible. For example, "foo" and "foo/bar" becomes "foo". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
90 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
91 |
:date: Date. Returns a date in a Unix date format, including the |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
92 |
timezone: "Mon Sep 04 15:13:13 2006 0700". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
93 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
94 |
:domain: Any text. Finds the first string that looks like an email |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
95 |
address, and extracts just the domain component. Example: ``User |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
96 |
<user@example.com>`` becomes ``example.com``. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
97 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
98 |
:email: Any text. Extracts the first string that looks like an email |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
99 |
address. Example: ``User <user@example.com>`` becomes |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
100 |
``user@example.com``. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
101 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
102 |
:escape: Any text. Replaces the special XML/XHTML characters "&", "<" |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
103 |
and ">" with XML entities. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
104 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
105 |
:fill68: Any text. Wraps the text to fit in 68 columns. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
106 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
107 |
:fill76: Any text. Wraps the text to fit in 76 columns. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
108 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
109 |
:firstline: Any text. Returns the first line of text. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
110 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
111 |
:nonempty: Any text. Returns '(none)' if the string is empty. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
112 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
113 |
:hgdate: Date. Returns the date as a pair of numbers: "1157407993 |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
114 |
25200" (Unix timestamp, timezone offset). |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
115 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
116 |
:isodate: Date. Returns the date in ISO 8601 format: "2009-08-18 13:00 |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
117 |
+0200". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
118 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
119 |
:isodatesec: Date. Returns the date in ISO 8601 format, including |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
120 |
seconds: "2009-08-18 13:00:13 +0200". See also the rfc3339date |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
121 |
filter. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
122 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
123 |
:localdate: Date. Converts a date to local date. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
124 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
125 |
:obfuscate: Any text. Returns the input text rendered as a sequence of |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
126 |
XML entities. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
127 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
128 |
:person: Any text. Returns the text before an email address. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
129 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
130 |
:rfc822date: Date. Returns a date using the same format used in email |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
131 |
headers: "Tue, 18 Aug 2009 13:00:13 +0200". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
132 |
|
9540
cad36e496640
help: un-indent help topics
Martin Geisler <mg@lazybytes.net>
parents:
9539
diff
changeset
|
133 |
:rfc3339date: Date. Returns a date using the Internet date format |
10066
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
134 |
specified in RFC 3339: "2009-08-18T13:00:13+02:00". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
135 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
136 |
:short: Changeset hash. Returns the short form of a changeset hash, |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
137 |
i.e. a 12-byte hexadecimal string. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
138 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
139 |
:shortdate: Date. Returns a date like "2006-09-18". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
140 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
141 |
:strip: Any text. Strips all leading and trailing whitespace. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
142 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
143 |
:tabindent: Any text. Returns the text, with every line except the |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
144 |
first starting with a tab character. |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
145 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
146 |
:urlescape: Any text. Escapes all "special" characters. For example, |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
147 |
"foo bar" becomes "foo%20bar". |
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
148 |
|
788e7d04c594
help/templates: use hanging indent for field list
Martin Geisler <mg@lazybytes.net>
parents:
10061
diff
changeset
|
149 |
:user: Any text. Returns the user portion of an email address. |