comparison mercurial/help/templates.txt @ 10061:9e2ab10728a2

Make {file_copies} usable as a --template key Before this, to display file copies in templates, you had to write something like {file_copies%filecopy}. For some reason, the {file_copy} subtemplate was used by default but not defined by default in changeset_templater, while styles were already using it. Here we define {file_copy} in changeset_templater, and change the templater to handle formatting strings like {file_copies%filecopy} with already expanded keys (in this case {file_copies}), for backward compatibility.
author Patrick Mezard <pmezard@gmail.com>
date Sun, 13 Dec 2009 18:06:24 +0100
parents f91e5630ce7e
children 788e7d04c594
comparison
equal deleted inserted replaced
10060:f780b1098efc 10061:9e2ab10728a2
32 :diffstat: String. Statistics of changes with the following 32 :diffstat: String. Statistics of changes with the following
33 format: "modified files: +added/-removed lines" 33 format: "modified files: +added/-removed lines"
34 :files: List of strings. All files modified, added, or removed 34 :files: List of strings. All files modified, added, or removed
35 by this changeset. 35 by this changeset.
36 :file_adds: List of strings. Files added by this changeset. 36 :file_adds: List of strings. Files added by this changeset.
37 :file_copies: List of strings. Files copied in this changeset with
38 their sources.
39 :file_copies_switch: List of strings. Like "file_copies" but displayed
40 only if the --copied switch is set.
37 :file_mods: List of strings. Files modified by this changeset. 41 :file_mods: List of strings. Files modified by this changeset.
38 :file_dels: List of strings. Files removed by this changeset. 42 :file_dels: List of strings. Files removed by this changeset.
39 :node: String. The changeset identification hash, as a 43 :node: String. The changeset identification hash, as a
40 40-character hexadecimal string. 44 40-character hexadecimal string.
41 :parents: List of strings. The parents of the changeset. 45 :parents: List of strings. The parents of the changeset.