Mercurial > evolve
comparison tests/test-evolve-templates.t @ 2594:a3fbe5293bf6 stable
merge with stable
author | Boris Feld <boris.feld@octobus.net> |
---|---|
date | Fri, 16 Jun 2017 11:32:21 +0200 |
parents | 1991935fb603 |
children | 54ac473663ff 3d432af2f6cd |
comparison
equal
deleted
inserted
replaced
2557:e3acb8823900 | 2594:a3fbe5293bf6 |
---|---|
15 > tlog = log -G -T '{node|short}\ | 15 > tlog = log -G -T '{node|short}\ |
16 > {if(precursors, "\n Precursors: {precursors}")}\ | 16 > {if(precursors, "\n Precursors: {precursors}")}\ |
17 > {if(precursors, "\n semi-colon: {join(precursors, "; ")}")}\ | 17 > {if(precursors, "\n semi-colon: {join(precursors, "; ")}")}\ |
18 > {if(successors, "\n Successors: {successors}")}\ | 18 > {if(successors, "\n Successors: {successors}")}\ |
19 > {if(successors, "\n semi-colon: {join(successors, "; ")}")}\ | 19 > {if(successors, "\n semi-colon: {join(successors, "; ")}")}\ |
20 > {if(successors, "\n Fate: {obsfate_quiet}")}\n' | 20 > {if(obsfate, "\n Fate: {obsfate}")}\n' |
21 > fatelog = log -G -T '{node|short}\n{if(obsfate, " Obsfate: {obsfate}\n")}' | |
22 > fatelogjson = log -G -T '{node|short} {obsfate|json}\n' | |
21 > EOF | 23 > EOF |
22 | 24 |
23 Test templates on amended commit | 25 Test templates on amended commit |
24 ================================ | 26 ================================ |
25 | 27 |
29 $ hg init $TESTTMP/templates-local-amend | 31 $ hg init $TESTTMP/templates-local-amend |
30 $ cd $TESTTMP/templates-local-amend | 32 $ cd $TESTTMP/templates-local-amend |
31 $ mkcommit ROOT | 33 $ mkcommit ROOT |
32 $ mkcommit A0 | 34 $ mkcommit A0 |
33 $ echo 42 >> A0 | 35 $ echo 42 >> A0 |
34 $ hg amend -m "A1" | 36 $ HGUSER=test1 hg amend -m "A1" --config devel.default-date="1234567890 0" |
35 $ hg amend -m "A2" | 37 $ HGUSER=test2 hg amend -m "A2" --config devel.default-date="987654321 0" |
36 $ hg log --hidden -G | 38 $ hg log --hidden -G |
37 @ changeset: 4:d004c8f274b9 | 39 @ changeset: 4:d004c8f274b9 |
38 | tag: tip | 40 | tag: tip |
39 | parent: 0:ea207398892e | 41 | parent: 0:ea207398892e |
40 | user: test | 42 | user: test |
68 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 70 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
69 working directory parent is obsolete! (471f378eab4c) | 71 working directory parent is obsolete! (471f378eab4c) |
70 (use 'hg evolve' to update to its successor: d004c8f274b9) | 72 (use 'hg evolve' to update to its successor: d004c8f274b9) |
71 | 73 |
72 Precursors template should show current revision as it is the working copy | 74 Precursors template should show current revision as it is the working copy |
75 $ hg olog tip | |
76 o d004c8f274b9 (4) A2 | |
77 | | |
78 x a468dc9b3633 (3) A1 | |
79 | rewritten(description) by test2 (*) as d004c8f274b9 (glob) | |
80 | | |
81 @ 471f378eab4c (1) A0 | |
82 rewritten(description, content) by test1 (*) as a468dc9b3633 (glob) | |
83 | |
73 $ hg tlog | 84 $ hg tlog |
74 o d004c8f274b9 | 85 o d004c8f274b9 |
75 | Precursors: 471f378eab4c | 86 | Precursors: 471f378eab4c |
76 | semi-colon: 471f378eab4c | 87 | semi-colon: 471f378eab4c |
77 | @ 471f378eab4c | 88 | @ 471f378eab4c |
78 |/ Successors: [d004c8f274b9] | 89 |/ Successors: [d004c8f274b9] |
79 | semi-colon: [d004c8f274b9] | 90 | semi-colon: [d004c8f274b9] |
80 | Fate: superseed as d004c8f274b9 | 91 | Fate: rewritten by test1, test2 as d004c8f274b9 |
92 | | |
93 o ea207398892e | |
94 | |
95 $ hg fatelog -q | |
96 o d004c8f274b9 | |
97 | | |
98 | @ 471f378eab4c | |
99 |/ Obsfate: rewritten as d004c8f274b9 | |
100 | | |
101 o ea207398892e | |
102 | |
103 | |
104 $ hg fatelog | |
105 o d004c8f274b9 | |
106 | | |
107 | @ 471f378eab4c | |
108 |/ Obsfate: rewritten by test1, test2 as d004c8f274b9 | |
109 | | |
110 o ea207398892e | |
111 | |
112 $ hg fatelog -v | |
113 o d004c8f274b9 | |
114 | | |
115 | @ 471f378eab4c | |
116 |/ Obsfate: rewritten by test1, test2 as d004c8f274b9 (between * and *) (glob) | |
117 | | |
81 o ea207398892e | 118 o ea207398892e |
82 | 119 |
83 $ hg up 'desc(A1)' --hidden | 120 $ hg up 'desc(A1)' --hidden |
84 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 121 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
85 working directory parent is obsolete! (a468dc9b3633) | 122 working directory parent is obsolete! (a468dc9b3633) |
91 | Precursors: a468dc9b3633 | 128 | Precursors: a468dc9b3633 |
92 | semi-colon: a468dc9b3633 | 129 | semi-colon: a468dc9b3633 |
93 | @ a468dc9b3633 | 130 | @ a468dc9b3633 |
94 |/ Successors: [d004c8f274b9] | 131 |/ Successors: [d004c8f274b9] |
95 | semi-colon: [d004c8f274b9] | 132 | semi-colon: [d004c8f274b9] |
96 | Fate: superseed as d004c8f274b9 | 133 | Fate: rewritten by test2 as d004c8f274b9 |
134 | | |
97 o ea207398892e | 135 o ea207398892e |
98 | 136 |
99 Precursors template should show the precursor as we force its display with | 137 Precursors template should show the precursor as we force its display with |
100 --hidden | 138 --hidden |
101 $ hg tlog --hidden | 139 $ hg tlog --hidden |
105 | @ a468dc9b3633 | 143 | @ a468dc9b3633 |
106 |/ Precursors: 471f378eab4c | 144 |/ Precursors: 471f378eab4c |
107 | semi-colon: 471f378eab4c | 145 | semi-colon: 471f378eab4c |
108 | Successors: [d004c8f274b9] | 146 | Successors: [d004c8f274b9] |
109 | semi-colon: [d004c8f274b9] | 147 | semi-colon: [d004c8f274b9] |
110 | Fate: superseed as d004c8f274b9 | 148 | Fate: rewritten by test2 as d004c8f274b9 |
149 | | |
111 | x f137d23bb3e1 | 150 | x f137d23bb3e1 |
151 | | Fate: pruned | |
112 | | | 152 | | |
113 | x 471f378eab4c | 153 | x 471f378eab4c |
114 |/ Successors: [a468dc9b3633] | 154 |/ Successors: [a468dc9b3633] |
115 | semi-colon: [a468dc9b3633] | 155 | semi-colon: [a468dc9b3633] |
116 | Fate: superseed as a468dc9b3633 | 156 | Fate: rewritten by test1 as a468dc9b3633 |
117 o ea207398892e | 157 | |
118 | 158 o ea207398892e |
119 | 159 |
160 $ hg fatelog -v | |
161 o d004c8f274b9 | |
162 | | |
163 | @ a468dc9b3633 | |
164 |/ Obsfate: rewritten by test2 as d004c8f274b9 (at *) (glob) | |
165 | | |
166 o ea207398892e | |
167 | |
120 $ hg up 'desc(A2)' | 168 $ hg up 'desc(A2)' |
121 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 169 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
122 $ hg tlog | 170 $ hg tlog |
123 @ d004c8f274b9 | 171 @ d004c8f274b9 |
124 | | 172 | |
131 | x a468dc9b3633 | 179 | x a468dc9b3633 |
132 |/ Precursors: 471f378eab4c | 180 |/ Precursors: 471f378eab4c |
133 | semi-colon: 471f378eab4c | 181 | semi-colon: 471f378eab4c |
134 | Successors: [d004c8f274b9] | 182 | Successors: [d004c8f274b9] |
135 | semi-colon: [d004c8f274b9] | 183 | semi-colon: [d004c8f274b9] |
136 | Fate: superseed as d004c8f274b9 | 184 | Fate: rewritten by test2 as d004c8f274b9 |
185 | | |
137 | x f137d23bb3e1 | 186 | x f137d23bb3e1 |
187 | | Fate: pruned | |
138 | | | 188 | | |
139 | x 471f378eab4c | 189 | x 471f378eab4c |
140 |/ Successors: [a468dc9b3633] | 190 |/ Successors: [a468dc9b3633] |
141 | semi-colon: [a468dc9b3633] | 191 | semi-colon: [a468dc9b3633] |
142 | Fate: superseed as a468dc9b3633 | 192 | Fate: rewritten by test1 as a468dc9b3633 |
143 o ea207398892e | 193 | |
194 o ea207398892e | |
195 | |
196 $ hg fatelog -v | |
197 @ d004c8f274b9 | |
198 | | |
199 o ea207398892e | |
200 | |
201 | |
202 $ hg fatelog -v --hidden | |
203 @ d004c8f274b9 | |
204 | | |
205 | x a468dc9b3633 | |
206 |/ Obsfate: rewritten by test2 as d004c8f274b9 (at *) (glob) | |
207 | | |
208 | x f137d23bb3e1 | |
209 | | Obsfate: pruned | |
210 | | | |
211 | x 471f378eab4c | |
212 |/ Obsfate: rewritten by test1 as a468dc9b3633 (at *) (glob) | |
213 | | |
214 o ea207398892e | |
215 | |
216 | |
217 $ hg fatelogjson --hidden | |
218 @ d004c8f274b9 "" | |
219 | | |
220 | x a468dc9b3633 [{"markers": [["\udca4h\u071b63\udc8b\u0014\udcfd\udcb7\udc82_U\udcce=\udcf4\udce7\u0015\u0017\udcad", ["\udcd0\u0004\udcc8\udcf2t\udcb9\udcecH\nG\udca9\u003c\u0010\udcda\udcc5\udcee\udce6:\udcdbx"], 0, [["ef1", "1"], ["user", "test2"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udcd0\u0004\udcc8\udcf2t\udcb9\udcecH\nG\udca9\u003c\u0010\udcda\udcc5\udcee\udce6:\udcdbx"], "users": ["test2"], "verb": "rewritten"}] (glob) | |
221 |/ | |
222 | x f137d23bb3e1 [{"markers": [], "successors": [], "verb": "pruned"}] | |
223 | | | |
224 | x 471f378eab4c [{"markers": [["G\u001f7\udc8e\udcabL^%\udcf6\udcc7\u007fx['\udcc96\udcef\udcb2(t", ["\udca4h\u071b63\udc8b\u0014\udcfd\udcb7\udc82_U\udcce=\udcf4\udce7\u0015\u0017\udcad"], 0, [["ef1", "9"], ["user", "test1"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udca4h\u071b63\udc8b\u0014\udcfd\udcb7\udc82_U\udcce=\udcf4\udce7\u0015\u0017\udcad"], "users": ["test1"], "verb": "rewritten"}] (glob) | |
225 |/ | |
226 o ea207398892e "" | |
144 | 227 |
145 | 228 |
146 Test templates with splitted commit | 229 Test templates with splitted commit |
147 =================================== | 230 =================================== |
148 | 231 |
242 | Precursors: 471597cad322 | 325 | Precursors: 471597cad322 |
243 | semi-colon: 471597cad322 | 326 | semi-colon: 471597cad322 |
244 | @ 471597cad322 | 327 | @ 471597cad322 |
245 |/ Successors: [337fec4d2edc, f257fde29c7a] | 328 |/ Successors: [337fec4d2edc, f257fde29c7a] |
246 | semi-colon: [337fec4d2edc, f257fde29c7a] | 329 | semi-colon: [337fec4d2edc, f257fde29c7a] |
247 | Fate: superseed as 337fec4d2edc,f257fde29c7a | 330 | Fate: rewritten by test as 337fec4d2edc, f257fde29c7a |
248 o ea207398892e | 331 | |
249 | 332 o ea207398892e |
333 | |
334 $ hg fatelog | |
335 o f257fde29c7a | |
336 | | |
337 o 337fec4d2edc | |
338 | | |
339 | @ 471597cad322 | |
340 |/ Obsfate: rewritten by test as 337fec4d2edc, f257fde29c7a | |
341 | | |
342 o ea207398892e | |
343 | |
344 | |
250 $ hg up f257fde29c7a | 345 $ hg up f257fde29c7a |
251 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 346 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
252 | 347 |
253 Precursors template should not show a precursor as it's not displayed in the | 348 Precursors template should not show a precursor as it's not displayed in the |
254 log | 349 log |
269 | Precursors: 471597cad322 | 364 | Precursors: 471597cad322 |
270 | semi-colon: 471597cad322 | 365 | semi-colon: 471597cad322 |
271 | x 471597cad322 | 366 | x 471597cad322 |
272 |/ Successors: [337fec4d2edc, f257fde29c7a] | 367 |/ Successors: [337fec4d2edc, f257fde29c7a] |
273 | semi-colon: [337fec4d2edc, f257fde29c7a] | 368 | semi-colon: [337fec4d2edc, f257fde29c7a] |
274 | Fate: superseed as 337fec4d2edc,f257fde29c7a | 369 | Fate: rewritten by test as 337fec4d2edc, f257fde29c7a |
275 o ea207398892e | 370 | |
276 | 371 o ea207398892e |
372 | |
373 $ hg fatelog --hidden | |
374 @ f257fde29c7a | |
375 | | |
376 o 337fec4d2edc | |
377 | | |
378 | x 471597cad322 | |
379 |/ Obsfate: rewritten by test as 337fec4d2edc, f257fde29c7a | |
380 | | |
381 o ea207398892e | |
382 | |
383 | |
384 $ hg fatelogjson --hidden | |
385 @ f257fde29c7a "" | |
386 | | |
387 o 337fec4d2edc "" | |
388 | | |
389 | x 471597cad322 [{"markers": [["G\\u0015\\udc97\\udcca\\udcd3\\"\\udcd1\\udcf6Y\\udcbb\\u0016\\udc97Q\\udcbe\\udc913\\udcda\\udcd9.\\udcf3", ["3\\u007f\\udcecM.\\udcdc\\udcf0\\udce7\\udca4g\\udce3_\\udc81\\udc824\\udcbcb\\u0000h\\udcb5", "\\udcf2W\\udcfd\\udce2\\udc9cz\\udc84|\\udc9b`\\u007fn\\udc95\\udc86V\\udcd0\\udcdf\\u000f\\udcb1\\\\"], 0, [["ef1", "12"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["3\\u007f\\udcecM.\\udcdc\\udcf0\\udce7\\udca4g\\udce3_\\udc81\\udc824\\udcbcb\\u0000h\\udcb5", "\\udcf2W\\udcfd\\udce2\\udc9cz\\udc84|\\udc9b`\\u007fn\\udc95\\udc86V\\udcd0\\udcdf\\u000f\\udcb1\\\\"], "users": ["test"], "verb": "rewritten"}] (glob) | |
390 |/ | |
391 o ea207398892e "" | |
392 | |
393 | |
277 Test templates with folded commit | 394 Test templates with folded commit |
278 ============================== | 395 ============================== |
279 | 396 |
280 Test setup | 397 Test setup |
281 ---------- | 398 ---------- |
342 | Precursors: 471f378eab4c | 459 | Precursors: 471f378eab4c |
343 | semi-colon: 471f378eab4c | 460 | semi-colon: 471f378eab4c |
344 | @ 471f378eab4c | 461 | @ 471f378eab4c |
345 |/ Successors: [eb5a0daa2192] | 462 |/ Successors: [eb5a0daa2192] |
346 | semi-colon: [eb5a0daa2192] | 463 | semi-colon: [eb5a0daa2192] |
347 | Fate: superseed as eb5a0daa2192 | 464 | Fate: rewritten by test as eb5a0daa2192 |
465 | | |
466 o ea207398892e | |
467 | |
468 $ hg fatelog | |
469 o eb5a0daa2192 | |
470 | | |
471 | @ 471f378eab4c | |
472 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
473 | | |
348 o ea207398892e | 474 o ea207398892e |
349 | 475 |
350 $ hg up 'desc(B0)' --hidden | 476 $ hg up 'desc(B0)' --hidden |
351 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 477 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
352 working directory parent is obsolete! (0dec01379d3b) | 478 working directory parent is obsolete! (0dec01379d3b) |
359 | Precursors: 0dec01379d3b 471f378eab4c | 485 | Precursors: 0dec01379d3b 471f378eab4c |
360 | semi-colon: 0dec01379d3b; 471f378eab4c | 486 | semi-colon: 0dec01379d3b; 471f378eab4c |
361 | @ 0dec01379d3b | 487 | @ 0dec01379d3b |
362 | | Successors: [eb5a0daa2192] | 488 | | Successors: [eb5a0daa2192] |
363 | | semi-colon: [eb5a0daa2192] | 489 | | semi-colon: [eb5a0daa2192] |
364 | | Fate: superseed as eb5a0daa2192 | 490 | | Fate: rewritten by test as eb5a0daa2192 |
491 | | | |
365 | x 471f378eab4c | 492 | x 471f378eab4c |
366 |/ Successors: [eb5a0daa2192] | 493 |/ Successors: [eb5a0daa2192] |
367 | semi-colon: [eb5a0daa2192] | 494 | semi-colon: [eb5a0daa2192] |
368 | Fate: superseed as eb5a0daa2192 | 495 | Fate: rewritten by test as eb5a0daa2192 |
369 o ea207398892e | 496 | |
370 | 497 o ea207398892e |
498 | |
499 $ hg fatelog | |
500 o eb5a0daa2192 | |
501 | | |
502 | @ 0dec01379d3b | |
503 | | Obsfate: rewritten by test as eb5a0daa2192 | |
504 | | | |
505 | x 471f378eab4c | |
506 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
507 | | |
508 o ea207398892e | |
509 | |
510 | |
371 $ hg up 'desc(C0)' | 511 $ hg up 'desc(C0)' |
372 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 512 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
373 | 513 |
374 Precursors template should not show precursors as it's not displayed in the | 514 Precursors template should not show precursors as it's not displayed in the |
375 log | 515 log |
385 | Precursors: 0dec01379d3b 471f378eab4c | 525 | Precursors: 0dec01379d3b 471f378eab4c |
386 | semi-colon: 0dec01379d3b; 471f378eab4c | 526 | semi-colon: 0dec01379d3b; 471f378eab4c |
387 | x 0dec01379d3b | 527 | x 0dec01379d3b |
388 | | Successors: [eb5a0daa2192] | 528 | | Successors: [eb5a0daa2192] |
389 | | semi-colon: [eb5a0daa2192] | 529 | | semi-colon: [eb5a0daa2192] |
390 | | Fate: superseed as eb5a0daa2192 | 530 | | Fate: rewritten by test as eb5a0daa2192 |
531 | | | |
391 | x 471f378eab4c | 532 | x 471f378eab4c |
392 |/ Successors: [eb5a0daa2192] | 533 |/ Successors: [eb5a0daa2192] |
393 | semi-colon: [eb5a0daa2192] | 534 | semi-colon: [eb5a0daa2192] |
394 | Fate: superseed as eb5a0daa2192 | 535 | Fate: rewritten by test as eb5a0daa2192 |
395 o ea207398892e | 536 | |
537 o ea207398892e | |
538 | |
539 $ hg fatelog --hidden | |
540 @ eb5a0daa2192 | |
541 | | |
542 | x 0dec01379d3b | |
543 | | Obsfate: rewritten by test as eb5a0daa2192 | |
544 | | | |
545 | x 471f378eab4c | |
546 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
547 | | |
548 o ea207398892e | |
549 | |
550 | |
551 $ hg fatelogjson --hidden | |
552 @ eb5a0daa2192 "" | |
553 | | |
554 | x 0dec01379d3b [{"markers": [["\r\udcec\u00017\udc9d;\udce61\udc8cG\u000e\udcad1\udcb1\udcfez\udce7\udccbS\udcd5", ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], 0, [["ef1", "13"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], "users": ["test"], "verb": "rewritten"}] (glob) | |
555 | | | |
556 | x 471f378eab4c [{"markers": [["G\u001f7\udc8e\udcabL^%\udcf6\udcc7\u007fx['\udcc96\udcef\udcb2(t", ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], 0, [["ef1", "9"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], "users": ["test"], "verb": "rewritten"}] (glob) | |
557 |/ | |
558 o ea207398892e "" | |
396 | 559 |
397 | 560 |
398 Test templates with divergence | 561 Test templates with divergence |
399 ============================== | 562 ============================== |
400 | 563 |
475 |/ Precursors: 471f378eab4c | 638 |/ Precursors: 471f378eab4c |
476 | semi-colon: 471f378eab4c | 639 | semi-colon: 471f378eab4c |
477 | @ 471f378eab4c | 640 | @ 471f378eab4c |
478 |/ Successors: [fdf9bde5129a], [019fadeab383] | 641 |/ Successors: [fdf9bde5129a], [019fadeab383] |
479 | semi-colon: [fdf9bde5129a]; [019fadeab383] | 642 | semi-colon: [fdf9bde5129a]; [019fadeab383] |
480 | Fate: superseed as fdf9bde5129a + superseed as 019fadeab383 | 643 | Fate: rewritten by test as fdf9bde5129a |
481 o ea207398892e | 644 | rewritten by test as 019fadeab383 |
482 | 645 | |
646 o ea207398892e | |
647 | |
648 $ hg fatelog | |
649 o 019fadeab383 | |
650 | | |
651 | o fdf9bde5129a | |
652 |/ | |
653 | @ 471f378eab4c | |
654 |/ Obsfate: rewritten by test as fdf9bde5129a | |
655 | rewritten by test as 019fadeab383 | |
656 | | |
657 o ea207398892e | |
658 | |
659 | |
483 $ hg up 'desc(A1)' | 660 $ hg up 'desc(A1)' |
484 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 661 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
485 Precursors template should not show precursors as it's not displayed in the | 662 Precursors template should not show precursors as it's not displayed in the |
486 log | 663 log |
487 $ hg tlog | 664 $ hg tlog |
665 o 019fadeab383 | |
666 | | |
667 | @ fdf9bde5129a | |
668 |/ | |
669 o ea207398892e | |
670 | |
671 | |
672 $ hg fatelog | |
488 o 019fadeab383 | 673 o 019fadeab383 |
489 | | 674 | |
490 | @ fdf9bde5129a | 675 | @ fdf9bde5129a |
491 |/ | 676 |/ |
492 o ea207398892e | 677 o ea207398892e |
499 | x 65b757b745b9 | 684 | x 65b757b745b9 |
500 |/ Precursors: 471f378eab4c | 685 |/ Precursors: 471f378eab4c |
501 | semi-colon: 471f378eab4c | 686 | semi-colon: 471f378eab4c |
502 | Successors: [019fadeab383] | 687 | Successors: [019fadeab383] |
503 | semi-colon: [019fadeab383] | 688 | semi-colon: [019fadeab383] |
504 | Fate: superseed as 019fadeab383 | 689 | Fate: rewritten by test as 019fadeab383 |
690 | | |
505 | @ fdf9bde5129a | 691 | @ fdf9bde5129a |
506 |/ Precursors: 471f378eab4c | 692 |/ Precursors: 471f378eab4c |
507 | semi-colon: 471f378eab4c | 693 | semi-colon: 471f378eab4c |
508 | x 471f378eab4c | 694 | x 471f378eab4c |
509 |/ Successors: [fdf9bde5129a], [65b757b745b9] | 695 |/ Successors: [fdf9bde5129a], [65b757b745b9] |
510 | semi-colon: [fdf9bde5129a]; [65b757b745b9] | 696 | semi-colon: [fdf9bde5129a]; [65b757b745b9] |
511 | Fate: superseed as fdf9bde5129a + superseed as 65b757b745b9 | 697 | Fate: rewritten by test as fdf9bde5129a |
512 o ea207398892e | 698 | rewritten by test as 65b757b745b9 |
513 | 699 | |
700 o ea207398892e | |
701 | |
702 $ hg fatelog --hidden | |
703 o 019fadeab383 | |
704 | | |
705 | x 65b757b745b9 | |
706 |/ Obsfate: rewritten by test as 019fadeab383 | |
707 | | |
708 | @ fdf9bde5129a | |
709 |/ | |
710 | x 471f378eab4c | |
711 |/ Obsfate: rewritten by test as fdf9bde5129a | |
712 | rewritten by test as 65b757b745b9 | |
713 | | |
714 o ea207398892e | |
715 | |
716 | |
717 $ hg fatelogjson --hidden | |
718 o 019fadeab383 "" | |
719 | | |
720 | x 65b757b745b9 [{"markers": [["e\udcb7W\udcb7E\udcb95\t\u003c\udc87\udca2\udcbc\u0347u!\udccc\udccf\udcfc\udcbd", ["\u0001\udc9f\udcad\uacc3\udcf6i\udc9f\udca8:\u05fd\udcb4\udcd8.\udcd2\udcc0\udce5\udcab"], 0, [["ef1", "1"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\u0001\udc9f\udcad\uacc3\udcf6i\udc9f\udca8:\u05fd\udcb4\udcd8.\udcd2\udcc0\udce5\udcab"], "users": ["test"], "verb": "rewritten"}] (glob) | |
721 |/ | |
722 | @ fdf9bde5129a "" | |
723 |/ | |
724 | x 471f378eab4c [{"markers": [["G\\u001f7\\udc8e\\udcabL^%\\udcf6\\udcc7\\u007fx['\\udcc96\\udcef\\udcb2(t", ["\\udcfd\\udcf9\\udcbd\\udce5\\u0012\\udc9a(\\udcd4T\\udc8f\\udcad\\udcd3\\udcf6+&\\\\\\udcdd;z."], 0, [["ef1", "1"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\\udcfd\\udcf9\\udcbd\\udce5\\u0012\\udc9a(\\udcd4T\\udc8f\\udcad\\udcd3\\udcf6+&\\\\\\udcdd;z."], "users": ["test"], "verb": "rewritten"}, {"markers": [["G\\u001f7\\udc8e\\udcabL^%\\udcf6\\udcc7\\u007fx['\\udcc96\\udcef\\udcb2(t", ["e\\udcb7W\\udcb7E\\udcb95\\t\\u003c\\udc87\\udca2\\udcbc\\u0347u!\\udccc\\udccf\\udcfc\\udcbd"], 0, [["ef1", "1"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["e\\udcb7W\\udcb7E\\udcb95\\t\\u003c\\udc87\\udca2\\udcbc\\u0347u!\\udccc\\udccf\\udcfc\\udcbd"], "users": ["test"], "verb": "rewritten"}] (glob) | |
725 |/ | |
726 o ea207398892e "" | |
727 | |
728 | |
514 Test templates with amended + folded commit | 729 Test templates with amended + folded commit |
515 =========================================== | 730 =========================================== |
516 | 731 |
517 Test setup | 732 Test setup |
518 ---------- | 733 ---------- |
590 | Precursors: 471f378eab4c | 805 | Precursors: 471f378eab4c |
591 | semi-colon: 471f378eab4c | 806 | semi-colon: 471f378eab4c |
592 | @ 471f378eab4c | 807 | @ 471f378eab4c |
593 |/ Successors: [eb5a0daa2192] | 808 |/ Successors: [eb5a0daa2192] |
594 | semi-colon: [eb5a0daa2192] | 809 | semi-colon: [eb5a0daa2192] |
595 | Fate: superseed as eb5a0daa2192 | 810 | Fate: rewritten by test as eb5a0daa2192 |
811 | | |
812 o ea207398892e | |
813 | |
814 $ hg fatelog | |
815 o eb5a0daa2192 | |
816 | | |
817 | @ 471f378eab4c | |
818 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
819 | | |
596 o ea207398892e | 820 o ea207398892e |
597 | 821 |
598 $ hg up 'desc(B0)' --hidden | 822 $ hg up 'desc(B0)' --hidden |
599 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 823 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
600 working directory parent is obsolete! (0dec01379d3b) | 824 working directory parent is obsolete! (0dec01379d3b) |
604 | Precursors: 0dec01379d3b 471f378eab4c | 828 | Precursors: 0dec01379d3b 471f378eab4c |
605 | semi-colon: 0dec01379d3b; 471f378eab4c | 829 | semi-colon: 0dec01379d3b; 471f378eab4c |
606 | @ 0dec01379d3b | 830 | @ 0dec01379d3b |
607 | | Successors: [eb5a0daa2192] | 831 | | Successors: [eb5a0daa2192] |
608 | | semi-colon: [eb5a0daa2192] | 832 | | semi-colon: [eb5a0daa2192] |
609 | | Fate: superseed as eb5a0daa2192 | 833 | | Fate: rewritten by test as eb5a0daa2192 |
834 | | | |
610 | x 471f378eab4c | 835 | x 471f378eab4c |
611 |/ Successors: [eb5a0daa2192] | 836 |/ Successors: [eb5a0daa2192] |
612 | semi-colon: [eb5a0daa2192] | 837 | semi-colon: [eb5a0daa2192] |
613 | Fate: superseed as eb5a0daa2192 | 838 | Fate: rewritten by test as eb5a0daa2192 |
614 o ea207398892e | 839 | |
615 | 840 o ea207398892e |
841 | |
842 $ hg fatelog | |
843 o eb5a0daa2192 | |
844 | | |
845 | @ 0dec01379d3b | |
846 | | Obsfate: rewritten by test as eb5a0daa2192 | |
847 | | | |
848 | x 471f378eab4c | |
849 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
850 | | |
851 o ea207398892e | |
852 | |
853 | |
616 $ hg up 'desc(B1)' --hidden | 854 $ hg up 'desc(B1)' --hidden |
617 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 855 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
618 working directory parent is obsolete! (b7ea6d14e664) | 856 working directory parent is obsolete! (b7ea6d14e664) |
619 (use 'hg evolve' to update to its successor: eb5a0daa2192) | 857 (use 'hg evolve' to update to its successor: eb5a0daa2192) |
620 $ hg tlog | 858 $ hg tlog |
622 | Precursors: 471f378eab4c b7ea6d14e664 | 860 | Precursors: 471f378eab4c b7ea6d14e664 |
623 | semi-colon: 471f378eab4c; b7ea6d14e664 | 861 | semi-colon: 471f378eab4c; b7ea6d14e664 |
624 | @ b7ea6d14e664 | 862 | @ b7ea6d14e664 |
625 | | Successors: [eb5a0daa2192] | 863 | | Successors: [eb5a0daa2192] |
626 | | semi-colon: [eb5a0daa2192] | 864 | | semi-colon: [eb5a0daa2192] |
627 | | Fate: superseed as eb5a0daa2192 | 865 | | Fate: rewritten by test as eb5a0daa2192 |
866 | | | |
628 | x 471f378eab4c | 867 | x 471f378eab4c |
629 |/ Successors: [eb5a0daa2192] | 868 |/ Successors: [eb5a0daa2192] |
630 | semi-colon: [eb5a0daa2192] | 869 | semi-colon: [eb5a0daa2192] |
631 | Fate: superseed as eb5a0daa2192 | 870 | Fate: rewritten by test as eb5a0daa2192 |
632 o ea207398892e | 871 | |
633 | 872 o ea207398892e |
873 | |
874 $ hg fatelog | |
875 o eb5a0daa2192 | |
876 | | |
877 | @ b7ea6d14e664 | |
878 | | Obsfate: rewritten by test as eb5a0daa2192 | |
879 | | | |
880 | x 471f378eab4c | |
881 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
882 | | |
883 o ea207398892e | |
884 | |
885 | |
634 $ hg up 'desc(C0)' | 886 $ hg up 'desc(C0)' |
635 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 887 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
636 $ hg tlog | 888 $ hg tlog |
637 @ eb5a0daa2192 | 889 @ eb5a0daa2192 |
638 | | 890 | |
645 | x b7ea6d14e664 | 897 | x b7ea6d14e664 |
646 | | Precursors: 0dec01379d3b | 898 | | Precursors: 0dec01379d3b |
647 | | semi-colon: 0dec01379d3b | 899 | | semi-colon: 0dec01379d3b |
648 | | Successors: [eb5a0daa2192] | 900 | | Successors: [eb5a0daa2192] |
649 | | semi-colon: [eb5a0daa2192] | 901 | | semi-colon: [eb5a0daa2192] |
650 | | Fate: superseed as eb5a0daa2192 | 902 | | Fate: rewritten by test as eb5a0daa2192 |
903 | | | |
651 | | x 0dec01379d3b | 904 | | x 0dec01379d3b |
652 | |/ Successors: [b7ea6d14e664] | 905 | |/ Successors: [b7ea6d14e664] |
653 | | semi-colon: [b7ea6d14e664] | 906 | | semi-colon: [b7ea6d14e664] |
654 | | Fate: superseed as b7ea6d14e664 | 907 | | Fate: rewritten by test as b7ea6d14e664 |
908 | | | |
655 | x 471f378eab4c | 909 | x 471f378eab4c |
656 |/ Successors: [eb5a0daa2192] | 910 |/ Successors: [eb5a0daa2192] |
657 | semi-colon: [eb5a0daa2192] | 911 | semi-colon: [eb5a0daa2192] |
658 | Fate: superseed as eb5a0daa2192 | 912 | Fate: rewritten by test as eb5a0daa2192 |
659 o ea207398892e | 913 | |
914 o ea207398892e | |
915 | |
916 $ hg fatelog --hidden | |
917 @ eb5a0daa2192 | |
918 | | |
919 | x b7ea6d14e664 | |
920 | | Obsfate: rewritten by test as eb5a0daa2192 | |
921 | | | |
922 | | x 0dec01379d3b | |
923 | |/ Obsfate: rewritten by test as b7ea6d14e664 | |
924 | | | |
925 | x 471f378eab4c | |
926 |/ Obsfate: rewritten by test as eb5a0daa2192 | |
927 | | |
928 o ea207398892e | |
929 | |
930 $ hg fatelogjson --hidden | |
931 @ eb5a0daa2192 "" | |
932 | | |
933 | x b7ea6d14e664 [{"markers": [["\udcb7\udceam\u0014\udce6d\udcbd\u0212\"!\udcf7\udc99&1\udcb5\r\udca3\udcfb\u0007", ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], 0, [["ef1", "13"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], "users": ["test"], "verb": "rewritten"}] (glob) | |
934 | | | |
935 | | x 0dec01379d3b [{"markers": [["\r\udcec\u00017\udc9d;\udce61\udc8cG\u000e\udcad1\udcb1\udcfez\udce7\udccbS\udcd5", ["\udcb7\udceam\u0014\udce6d\udcbd\u0212\"!\udcf7\udc99&1\udcb5\r\udca3\udcfb\u0007"], 0, [["ef1", "1"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udcb7\udceam\u0014\udce6d\udcbd\u0212\"!\udcf7\udc99&1\udcb5\r\udca3\udcfb\u0007"], "users": ["test"], "verb": "rewritten"}] (glob) | |
936 | |/ | |
937 | x 471f378eab4c [{"markers": [["G\u001f7\udc8e\udcabL^%\udcf6\udcc7\u007fx['\udcc96\udcef\udcb2(t", ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], 0, [["ef1", "9"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["\udcebZ\r\udcaa!\udc92;\udcbf\udc8c\udcae\udcb2\udcc4 \udc85\udcb9\udce4c\udc86\u001f\udcd0"], "users": ["test"], "verb": "rewritten"}] (glob) | |
938 |/ | |
939 o ea207398892e "" | |
660 | 940 |
661 | 941 |
662 Test template with pushed and pulled obs markers | 942 Test template with pushed and pulled obs markers |
663 ============================================== | 943 ============================================== |
664 | 944 |
740 o changeset: 0:ea207398892e | 1020 o changeset: 0:ea207398892e |
741 user: test | 1021 user: test |
742 date: Thu Jan 01 00:00:00 1970 +0000 | 1022 date: Thu Jan 01 00:00:00 1970 +0000 |
743 summary: ROOT | 1023 summary: ROOT |
744 | 1024 |
745 | |
746 Check templates | 1025 Check templates |
747 --------------- | 1026 --------------- |
748 | 1027 |
749 $ hg tlog | 1028 $ hg tlog |
750 o 7a230b46bf61 | 1029 o 7a230b46bf61 |
751 | Precursors: 471f378eab4c | 1030 | Precursors: 471f378eab4c |
752 | semi-colon: 471f378eab4c | 1031 | semi-colon: 471f378eab4c |
753 | @ 471f378eab4c | 1032 | @ 471f378eab4c |
754 |/ Successors: [7a230b46bf61] | 1033 |/ Successors: [7a230b46bf61] |
755 | semi-colon: [7a230b46bf61] | 1034 | semi-colon: [7a230b46bf61] |
756 | Fate: superseed as 7a230b46bf61 | 1035 | Fate: rewritten by test as 7a230b46bf61 |
1036 | | |
1037 o ea207398892e | |
1038 | |
1039 $ hg fatelog --hidden -v | |
1040 o 7a230b46bf61 | |
1041 | | |
1042 | @ 471f378eab4c | |
1043 |/ Obsfate: rewritten by test as 7a230b46bf61 (between * and *) (glob) | |
1044 | | |
757 o ea207398892e | 1045 o ea207398892e |
758 | 1046 |
759 $ hg up 'desc(A2)' | 1047 $ hg up 'desc(A2)' |
760 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1048 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
761 $ hg tlog | 1049 $ hg tlog |
1050 @ 7a230b46bf61 | |
1051 | | |
1052 o ea207398892e | |
1053 | |
1054 $ hg fatelog -v | |
762 @ 7a230b46bf61 | 1055 @ 7a230b46bf61 |
763 | | 1056 | |
764 o ea207398892e | 1057 o ea207398892e |
765 | 1058 |
766 $ hg tlog --hidden | 1059 $ hg tlog --hidden |
768 | Precursors: 471f378eab4c | 1061 | Precursors: 471f378eab4c |
769 | semi-colon: 471f378eab4c | 1062 | semi-colon: 471f378eab4c |
770 | x 471f378eab4c | 1063 | x 471f378eab4c |
771 |/ Successors: [7a230b46bf61] | 1064 |/ Successors: [7a230b46bf61] |
772 | semi-colon: [7a230b46bf61] | 1065 | semi-colon: [7a230b46bf61] |
773 | Fate: superseed as 7a230b46bf61 | 1066 | Fate: rewritten by test as 7a230b46bf61 |
774 o ea207398892e | 1067 | |
775 | 1068 o ea207398892e |
1069 | |
1070 $ hg fatelog --hidden -v | |
1071 @ 7a230b46bf61 | |
1072 | | |
1073 | x 471f378eab4c | |
1074 |/ Obsfate: rewritten by test as 7a230b46bf61 (between * and *) (glob) | |
1075 | | |
1076 o ea207398892e | |
1077 | |
1078 | |
1079 $ hg fatelogjson --hidden | |
1080 @ 7a230b46bf61 "" | |
1081 | | |
1082 | x 471f378eab4c [{"markers": [["G\\u001f7\\udc8e\\udcabL^%\\udcf6\\udcc7\\u007fx['\\udcc96\\udcef\\udcb2(t", ["\\udcfd\\udcf9\\udcbd\\udce5\\u0012\\udc9a(\\udcd4T\\udc8f\\udcad\\udcd3\\udcf6+&\\\\\\udcdd;z."], 0, [["ef1", "1"], ["user", "test"]], [*, 0], null], ["\\udcfd\\udcf9\\udcbd\\udce5\\u0012\\udc9a(\\udcd4T\\udc8f\\udcad\\udcd3\\udcf6+&\\\\\\udcdd;z.", ["z#\\u000bF\\udcbfa\\udce5\\u000b00\\udc8cl\\udcfd{\\udcd1&\\udc9e\\udcf5G\\u0002"], 0, [["ef1", "1"], ["user", "test"]], [*, 0], null]], "max_date": [*, 0], "min_date": [*, 0], "successors": ["z#\\u000bF\\udcbfa\\udce5\\u000b00\\udc8cl\\udcfd{\\udcd1&\\udc9e\\udcf5G\\u0002"], "users": ["test"], "verb": "rewritten"}] (glob) | |
1083 |/ | |
1084 o ea207398892e "" | |
1085 | |
1086 | |
1087 Test templates with pruned commits | |
1088 ================================== | |
1089 | |
1090 Test setup | |
1091 ---------- | |
1092 | |
1093 $ hg init $TESTTMP/templates-local-prune | |
1094 $ cd $TESTTMP/templates-local-prune | |
1095 $ mkcommit ROOT | |
1096 $ mkcommit A0 | |
1097 $ hg prune . | |
1098 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
1099 working directory now at ea207398892e | |
1100 1 changesets pruned | |
1101 | |
1102 Check output | |
1103 ------------ | |
1104 | |
1105 $ hg up "desc(A0)" --hidden | |
1106 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
1107 working directory parent is obsolete! (471f378eab4c) | |
1108 (use 'hg evolve' to update to its parent successor) | |
1109 $ hg tlog | |
1110 @ 471f378eab4c | |
1111 | Fate: pruned | |
1112 | | |
1113 o ea207398892e | |
1114 | |
1115 $ hg fatelog -v | |
1116 @ 471f378eab4c | |
1117 | Obsfate: pruned | |
1118 | | |
1119 o ea207398892e | |
1120 |