Mercurial > public > mercurial-scm > hg-stable
comparison tests/drawdag.py @ 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 | 5cc8deb96b48 |
children | 25079cc2016f |
comparison
equal
deleted
inserted
replaced
53035:6e1eb7212633 | 53036:fcd7cb10623d |
---|---|
77 | 77 |
78 - Create obsmarkers | 78 - Create obsmarkers |
79 # replace: A -> B -> C -> D # chained 1 to 1 replacements | 79 # replace: A -> B -> C -> D # chained 1 to 1 replacements |
80 # split: A -> B, C # 1 to many | 80 # split: A -> B, C # 1 to many |
81 # prune: A, B, C # many to nothing | 81 # prune: A, B, C # many to nothing |
82 | |
83 Special comment can also be used to control file content for some revision. | |
84 | |
85 The example below create two extra files in A, update on in B. | |
86 | |
87 In all case the file matching the node name is created for all non-merge | |
88 commit. | |
89 | |
90 C # A/file/path=content in A | |
91 | # A/other/file/path=content for another file | |
92 B # B/file/path=updated content in B | |
93 | | |
94 A | |
82 """ | 95 """ |
83 | 96 |
84 import collections | 97 import collections |
85 import itertools | 98 import itertools |
86 import re | 99 import re |