changeset 53036:fcd7cb10623d stable

drawdag: add documentation about special comment around files The feature was not documented, so we start with documenting it before extending it.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Tue, 11 Mar 2025 11:38:12 +0100
parents 6e1eb7212633
children d686448e8eb6
files tests/drawdag.py
diffstat 1 files changed, 13 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/tests/drawdag.py	Mon Mar 10 14:28:33 2025 +0100
+++ b/tests/drawdag.py	Tue Mar 11 11:38:12 2025 +0100
@@ -79,6 +79,19 @@
       # replace: A -> B -> C -> D  # chained 1 to 1 replacements
       # split: A -> B, C           # 1 to many
       # prune: A, B, C             # many to nothing
+
+Special comment can also be used to control file content for some revision.
+
+The example below create two extra files in A, update on in B.
+
+In all case the file matching the node name is created for all non-merge
+commit.
+
+    C # A/file/path=content in A
+    | # A/other/file/path=content for another file
+    B # B/file/path=updated content in B
+    | 
+    A
 """
 
 import collections