diff 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
line wrap: on
line diff
--- a/mercurial/help/templates.txt	Sun Dec 13 18:06:24 2009 +0100
+++ b/mercurial/help/templates.txt	Sun Dec 13 18:06:24 2009 +0100
@@ -34,6 +34,10 @@
 :files:     List of strings. All files modified, added, or removed
             by this changeset.
 :file_adds: List of strings. Files added by this changeset.
+:file_copies: List of strings. Files copied in this changeset with
+            their sources.
+:file_copies_switch: List of strings. Like "file_copies" but displayed
+            only if the --copied switch is set.
 :file_mods: List of strings. Files modified by this changeset.
 :file_dels: List of strings. Files removed by this changeset.
 :node:      String. The changeset identification hash, as a