Show More
@@ -17,8 +17,8 b' Test for the heuristic copytracing algor' | |||||
17 | > rebase= |
|
17 | > rebase= | |
18 | > shelve= |
|
18 | > shelve= | |
19 | > [alias] |
|
19 | > [alias] | |
20 |
> l = log -G -T ' |
|
20 | > l = log -G -T 'rev: {rev}\ndesc: {desc}\n' | |
21 |
> pl = log -G -T ' |
|
21 | > pl = log -G -T 'rev: {rev}, phase: {phase}\ndesc: {desc}\n' | |
22 | > EOF |
|
22 | > EOF | |
23 |
|
23 | |||
24 | NOTE: calling initclient() set copytrace.sourcecommitlimit=-1 as we want to |
|
24 | NOTE: calling initclient() set copytrace.sourcecommitlimit=-1 as we want to | |
@@ -47,11 +47,11 b' Check filename heuristics (same dirname ' | |||||
47 | $ hg ci -qm 'mod a, mod dir/file.txt' |
|
47 | $ hg ci -qm 'mod a, mod dir/file.txt' | |
48 |
|
48 | |||
49 | $ hg l |
|
49 | $ hg l | |
50 | @ changeset: 557f403c0afd2a3cf15d7e2fb1f1001a8b85e081 |
|
50 | @ rev: 2 | |
51 |
| |
|
51 | | desc: mod a, mod dir/file.txt | |
52 | | o changeset: 928d74bc9110681920854d845c06959f6dfc9547 |
|
52 | | o rev: 1 | |
53 |
|/ |
|
53 | |/ desc: mv a b, mv dir/ dir2/ | |
54 | o changeset: 3c482b16e54596fed340d05ffaf155f156cda7ee |
|
54 | o rev: 0 | |
55 |
|
|
55 | desc: initial | |
56 |
|
56 | |||
57 | $ hg rebase -s . -d 1 |
|
57 | $ hg rebase -s . -d 1 | |
@@ -80,11 +80,11 b' Make sure filename heuristics do not whe' | |||||
80 | $ hg ci -qm 'mode a' |
|
80 | $ hg ci -qm 'mode a' | |
81 |
|
81 | |||
82 | $ hg l |
|
82 | $ hg l | |
83 | @ changeset: d526312210b9e8f795d576a77dc643796384d86e |
|
83 | @ rev: 2 | |
84 |
| |
|
84 | | desc: mode a | |
85 | | o changeset: 46985f76c7e5e5123433527f5c8526806145650b |
|
85 | | o rev: 1 | |
86 |
|/ |
|
86 | |/ desc: rm a, add b | |
87 | o changeset: e5b71fb099c29d9172ef4a23485aaffd497e4cc0 |
|
87 | o rev: 0 | |
88 |
|
|
88 | desc: initial | |
89 |
|
89 | |||
90 | $ hg rebase -s . -d 1 |
|
90 | $ hg rebase -s . -d 1 | |
@@ -117,14 +117,14 b" Test when lca didn't modified the file t" | |||||
117 | $ hg ci -qm 'mod a' |
|
117 | $ hg ci -qm 'mod a' | |
118 |
|
118 | |||
119 | $ hg pl |
|
119 | $ hg pl | |
120 | @ changeset: 9d5cf99c3d9f8e8b05ba55421f7f56530cfcf3bc |
|
120 | @ rev: 3, phase: draft | |
121 |
| |
|
121 | | desc: mod a | |
122 | | o changeset: d760186dd240fc47b91eb9f0b58b0002aaeef95d |
|
122 | | o rev: 2, phase: draft | |
123 |
|/ |
|
123 | |/ desc: mv a b | |
124 | o changeset: 48e1b6ba639d5d7fb313fa7989eebabf99c9eb83 |
|
124 | o rev: 1, phase: draft | |
125 |
| |
|
125 | | desc: randomcommit | |
126 | o changeset: e5b71fb099c29d9172ef4a23485aaffd497e4cc0 |
|
126 | o rev: 0, phase: draft | |
127 |
|
|
127 | desc: initial | |
128 |
|
128 | |||
129 | $ hg rebase -s . -d 2 |
|
129 | $ hg rebase -s . -d 2 | |
130 | rebasing 3:9d5cf99c3d9f "mod a" (tip) |
|
130 | rebasing 3:9d5cf99c3d9f "mod a" (tip) | |
@@ -152,13 +152,13 b' Rebase "backwards"' | |||||
152 | $ hg ci -qm 'mod b' |
|
152 | $ hg ci -qm 'mod b' | |
153 |
|
153 | |||
154 | $ hg l |
|
154 | $ hg l | |
155 | @ changeset: fbe97126b3969056795c462a67d93faf13e4d298 |
|
155 | @ rev: 3 | |
156 |
| |
|
156 | | desc: mod b | |
157 | o changeset: d760186dd240fc47b91eb9f0b58b0002aaeef95d |
|
157 | o rev: 2 | |
158 |
| |
|
158 | | desc: mv a b | |
159 | o changeset: 48e1b6ba639d5d7fb313fa7989eebabf99c9eb83 |
|
159 | o rev: 1 | |
160 |
| |
|
160 | | desc: randomcommit | |
161 | o changeset: e5b71fb099c29d9172ef4a23485aaffd497e4cc0 |
|
161 | o rev: 0 | |
162 |
|
|
162 | desc: initial | |
163 |
|
163 | |||
164 | $ hg rebase -s . -d 0 |
|
164 | $ hg rebase -s . -d 0 | |
@@ -189,13 +189,13 b' Check a few potential move candidates' | |||||
189 | $ hg ci -qm 'mod dir/a' |
|
189 | $ hg ci -qm 'mod dir/a' | |
190 |
|
190 | |||
191 | $ hg l |
|
191 | $ hg l | |
192 | @ changeset: 6b2f4cece40fd320f41229f23821256ffc08efea |
|
192 | @ rev: 3 | |
193 |
| |
|
193 | | desc: mod dir/a | |
194 | | o changeset: 4494bf7efd2e0dfdd388e767fb913a8a3731e3fa |
|
194 | | o rev: 2 | |
195 |
| | |
|
195 | | | desc: create dir2/a | |
196 | | o changeset: b1784dfab6ea6bfafeb11c0ac50a2981b0fe6ade |
|
196 | | o rev: 1 | |
197 |
|/ |
|
197 | |/ desc: mv dir/a dir/b | |
198 | o changeset: 36859b8907c513a3a87ae34ba5b1e7eea8c20944 |
|
198 | o rev: 0 | |
199 |
|
|
199 | desc: initial | |
200 |
|
200 | |||
201 | $ hg rebase -s . -d 2 |
|
201 | $ hg rebase -s . -d 2 | |
@@ -234,11 +234,11 b' Test the copytrace.movecandidateslimit w' | |||||
234 | created new head |
|
234 | created new head | |
235 |
|
235 | |||
236 | $ hg l |
|
236 | $ hg l | |
237 | @ changeset: ef716627c70bf4ca0bdb623cfb0d6fe5b9acc51e |
|
237 | @ rev: 2 | |
238 |
| |
|
238 | | desc: mod a | |
239 | | o changeset: 8329d5c6bf479ec5ca59b9864f3f45d07213f5a4 |
|
239 | | o rev: 1 | |
240 |
|/ |
|
240 | |/ desc: mv a foo, add many files | |
241 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
241 | o rev: 0 | |
242 |
|
|
242 | desc: initial | |
243 |
|
243 | |||
244 | With small limit |
|
244 | With small limit | |
@@ -282,12 +282,12 b' Move file in one branch and delete it in' | |||||
282 | created new head |
|
282 | created new head | |
283 |
|
283 | |||
284 | $ hg pl |
|
284 | $ hg pl | |
285 | @ changeset: 7d61ee3b1e48577891a072024968428ba465c47b |
|
285 | @ rev: 2, phase: draft | |
286 |
| |
|
286 | | desc: del a | |
287 | | o changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
287 | | o rev: 1, phase: draft | |
288 |
|/ |
|
288 | |/ desc: mv a b | |
289 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
289 | o rev: 0, phase: draft | |
290 |
|
|
290 | desc: initial | |
291 |
|
291 | |||
292 | $ hg rebase -s 1 -d 2 |
|
292 | $ hg rebase -s 1 -d 2 | |
293 | rebasing 1:472e38d57782 "mv a b" |
|
293 | rebasing 1:472e38d57782 "mv a b" | |
@@ -315,11 +315,11 b' Move a directory in draft branch' | |||||
315 | $ hg ci -qm 'mv dir/ dir2/' |
|
315 | $ hg ci -qm 'mv dir/ dir2/' | |
316 |
|
316 | |||
317 | $ hg l |
|
317 | $ hg l | |
318 | @ changeset: a33d80b6e352591dfd82784e1ad6cdd86b25a239 |
|
318 | @ rev: 2 | |
319 |
| |
|
319 | | desc: mv dir/ dir2/ | |
320 | | o changeset: 6b2f4cece40fd320f41229f23821256ffc08efea |
|
320 | | o rev: 1 | |
321 |
|/ |
|
321 | |/ desc: mod dir/a | |
322 | o changeset: 36859b8907c513a3a87ae34ba5b1e7eea8c20944 |
|
322 | o rev: 0 | |
323 |
|
|
323 | desc: initial | |
324 |
|
324 | |||
325 | $ hg rebase -s . -d 1 |
|
325 | $ hg rebase -s . -d 1 | |
@@ -349,13 +349,13 b' Move file twice and rebase mod on top of' | |||||
349 | created new head |
|
349 | created new head | |
350 |
|
350 | |||
351 | $ hg l |
|
351 | $ hg l | |
352 | @ changeset: d413169422167a3fa5275fc5d71f7dea9f5775f3 |
|
352 | @ rev: 3 | |
353 |
| |
|
353 | | desc: mod a | |
354 | | o changeset: d3efd280421d24f9f229997c19e654761c942a71 |
|
354 | | o rev: 2 | |
355 |
| | |
|
355 | | | desc: mv b c | |
356 | | o changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
356 | | o rev: 1 | |
357 |
|/ |
|
357 | |/ desc: mv a b | |
358 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
358 | o rev: 0 | |
359 |
|
|
359 | desc: initial | |
360 | $ hg rebase -s . -d 2 |
|
360 | $ hg rebase -s . -d 2 | |
361 | rebasing 3:d41316942216 "mod a" (tip) |
|
361 | rebasing 3:d41316942216 "mod a" (tip) | |
@@ -383,13 +383,13 b' Move file twice and rebase moves on top ' | |||||
383 | $ hg ci -m 'mod a' |
|
383 | $ hg ci -m 'mod a' | |
384 | created new head |
|
384 | created new head | |
385 | $ hg l |
|
385 | $ hg l | |
386 | @ changeset: d413169422167a3fa5275fc5d71f7dea9f5775f3 |
|
386 | @ rev: 3 | |
387 |
| |
|
387 | | desc: mod a | |
388 | | o changeset: d3efd280421d24f9f229997c19e654761c942a71 |
|
388 | | o rev: 2 | |
389 |
| | |
|
389 | | | desc: mv b c | |
390 | | o changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
390 | | o rev: 1 | |
391 |
|/ |
|
391 | |/ desc: mv a b | |
392 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
392 | o rev: 0 | |
393 |
|
|
393 | desc: initial | |
394 | $ hg rebase -s 1 -d . |
|
394 | $ hg rebase -s 1 -d . | |
395 | rebasing 1:472e38d57782 "mv a b" |
|
395 | rebasing 1:472e38d57782 "mv a b" | |
@@ -421,13 +421,13 b' Move one file and add another file in th' | |||||
421 | created new head |
|
421 | created new head | |
422 |
|
422 | |||
423 | $ hg l |
|
423 | $ hg l | |
424 | @ changeset: ef716627c70bf4ca0bdb623cfb0d6fe5b9acc51e |
|
424 | @ rev: 3 | |
425 |
| |
|
425 | | desc: mod a | |
426 | | o changeset: b1a6187e79fbce851bb584eadcb0cc4a80290fd9 |
|
426 | | o rev: 2 | |
427 |
| | |
|
427 | | | desc: add c | |
428 | | o changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
428 | | o rev: 1 | |
429 |
|/ |
|
429 | |/ desc: mv a b | |
430 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
430 | o rev: 0 | |
431 |
|
|
431 | desc: initial | |
432 |
|
432 | |||
433 | $ hg rebase -s . -d 2 |
|
433 | $ hg rebase -s . -d 2 | |
@@ -459,11 +459,11 b' Merge test' | |||||
459 | $ hg up -q 2 |
|
459 | $ hg up -q 2 | |
460 |
|
460 | |||
461 | $ hg l |
|
461 | $ hg l | |
462 | @ changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
462 | @ rev: 2 | |
463 |
| |
|
463 | | desc: mv a b | |
464 | | o changeset: b0357b07f79129a3d08a68621271ca1352ae8a09 |
|
464 | | o rev: 1 | |
465 |
|/ |
|
465 | |/ desc: modify a | |
466 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
466 | o rev: 0 | |
467 |
|
|
467 | desc: initial | |
468 |
|
468 | |||
469 | $ hg merge 1 |
|
469 | $ hg merge 1 | |
@@ -494,11 +494,11 b' Copy and move file' | |||||
494 | created new head |
|
494 | created new head | |
495 |
|
495 | |||
496 | $ hg l |
|
496 | $ hg l | |
497 | @ changeset: ef716627c70bf4ca0bdb623cfb0d6fe5b9acc51e |
|
497 | @ rev: 2 | |
498 |
| |
|
498 | | desc: mod a | |
499 | | o changeset: 4fc3fd13fbdb89ada6b75bfcef3911a689a0dde8 |
|
499 | | o rev: 1 | |
500 |
|/ |
|
500 | |/ desc: cp a c, mv a b | |
501 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
501 | o rev: 0 | |
502 |
|
|
502 | desc: initial | |
503 |
|
503 | |||
504 | $ hg rebase -s . -d 1 |
|
504 | $ hg rebase -s . -d 1 | |
@@ -534,13 +534,13 b' Do a merge commit with many consequent m' | |||||
534 | $ hg ci -qm 'mv b c' |
|
534 | $ hg ci -qm 'mv b c' | |
535 | $ hg up -q 1 |
|
535 | $ hg up -q 1 | |
536 | $ hg l |
|
536 | $ hg l | |
537 | o changeset: d3efd280421d24f9f229997c19e654761c942a71 |
|
537 | o rev: 3 | |
538 |
| |
|
538 | | desc: mv b c | |
539 | o changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
539 | o rev: 2 | |
540 |
| |
|
540 | | desc: mv a b | |
541 | | @ changeset: ef716627c70bf4ca0bdb623cfb0d6fe5b9acc51e |
|
541 | | @ rev: 1 | |
542 |
|/ |
|
542 | |/ desc: mod a | |
543 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
543 | o rev: 0 | |
544 |
|
|
544 | desc: initial | |
545 |
|
545 | |||
546 | $ hg merge 3 |
|
546 | $ hg merge 3 | |
@@ -549,16 +549,16 b' Do a merge commit with many consequent m' | |||||
549 | (branch merge, don't forget to commit) |
|
549 | (branch merge, don't forget to commit) | |
550 | $ hg ci -qm 'merge' |
|
550 | $ hg ci -qm 'merge' | |
551 | $ hg pl |
|
551 | $ hg pl | |
552 | @ changeset: cd29b0d08c0f39bfed4cde1b40e30f419db0c825 |
|
552 | @ rev: 4, phase: draft | |
553 |
|\ |
|
553 | |\ desc: merge | |
554 | | o changeset: d3efd280421d24f9f229997c19e654761c942a71 |
|
554 | | o rev: 3, phase: draft | |
555 |
| | |
|
555 | | | desc: mv b c | |
556 | | o changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
556 | | o rev: 2, phase: draft | |
557 |
| | |
|
557 | | | desc: mv a b | |
558 | o | changeset: ef716627c70bf4ca0bdb623cfb0d6fe5b9acc51e |
|
558 | o | rev: 1, phase: draft | |
559 |
|/ |
|
559 | |/ desc: mod a | |
560 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
560 | o rev: 0, phase: draft | |
561 |
|
|
561 | desc: initial | |
562 | $ ls |
|
562 | $ ls | |
563 | c |
|
563 | c | |
564 | $ cd .. |
|
564 | $ cd .. | |
@@ -581,9 +581,9 b' Test shelve/unshelve' | |||||
581 | $ hg ci -m 'mv a b' |
|
581 | $ hg ci -m 'mv a b' | |
582 |
|
582 | |||
583 | $ hg l |
|
583 | $ hg l | |
584 | @ changeset: 472e38d57782172f6c6abed82a94ca0d998c3a22 |
|
584 | @ rev: 1 | |
585 |
| |
|
585 | | desc: mv a b | |
586 | o changeset: 1451231c87572a7d3f92fc210b4b35711c949a98 |
|
586 | o rev: 0 | |
587 |
|
|
587 | desc: initial | |
588 | $ hg unshelve |
|
588 | $ hg unshelve | |
589 | unshelving change 'default' |
|
589 | unshelving change 'default' | |
@@ -618,12 +618,12 b' File directory and base name changed in ' | |||||
618 | $ hg ci -qm 'mod a' |
|
618 | $ hg ci -qm 'mod a' | |
619 |
|
619 | |||
620 | $ hg pl |
|
620 | $ hg pl | |
621 | @ changeset: 6207d2d318e710b882e3d5ada2a89770efc42c96 |
|
621 | @ rev: 2, phase: draft | |
622 |
| |
|
622 | | desc: mod a | |
623 | | o changeset: abffdd4e3dfc04bc375034b970299b2a309a1cce |
|
623 | | o rev: 1, phase: draft | |
624 |
|/ |
|
624 | |/ desc: mv a b; mv dir1 dir2 | |
625 | o changeset: 81973cd24b58db2fdf18ce3d64fb2cc3284e9ab3 |
|
625 | o rev: 0, phase: draft | |
626 |
|
|
626 | desc: initial | |
627 |
|
627 | |||
628 | $ hg rebase -s . -d 1 --config experimental.copytrace.sourcecommitlimit=100 |
|
628 | $ hg rebase -s . -d 1 --config experimental.copytrace.sourcecommitlimit=100 | |
629 | rebasing 2:6207d2d318e7 "mod a" (tip) |
|
629 | rebasing 2:6207d2d318e7 "mod a" (tip) | |
@@ -656,12 +656,12 b' in other merge parent. File moved on reb' | |||||
656 | $ hg ci -qm 'mv dir1 dir2' |
|
656 | $ hg ci -qm 'mv dir1 dir2' | |
657 |
|
657 | |||
658 | $ hg pl |
|
658 | $ hg pl | |
659 | @ changeset: e8919e7df8d036e07b906045eddcd4a42ff1915f |
|
659 | @ rev: 2, phase: draft | |
660 |
| |
|
660 | | desc: mv dir1 dir2 | |
661 | | o changeset: 7c7c6f339be00f849c3cb2df738ca91db78b32c8 |
|
661 | | o rev: 1, phase: draft | |
662 |
|/ |
|
662 | |/ desc: hg add dir1/a | |
663 | o changeset: a235dcce55dcf42034c4e374cb200662d0bb4a13 |
|
663 | o rev: 0, phase: draft | |
664 |
|
|
664 | desc: initial | |
665 |
|
665 | |||
666 | $ hg rebase -s . -d 1 --config experimental.copytrace.sourcecommitlimit=100 |
|
666 | $ hg rebase -s . -d 1 --config experimental.copytrace.sourcecommitlimit=100 | |
667 | rebasing 2:e8919e7df8d0 "mv dir1 dir2" (tip) |
|
667 | rebasing 2:e8919e7df8d0 "mv dir1 dir2" (tip) | |
@@ -689,18 +689,18 b' Testing the sourcecommitlimit config' | |||||
689 | $ hg mv a foo/bar |
|
689 | $ hg mv a foo/bar | |
690 | $ hg ci -m "Moved a to foo/bar" |
|
690 | $ hg ci -m "Moved a to foo/bar" | |
691 | $ hg pl |
|
691 | $ hg pl | |
692 | @ changeset: b4b0f7880e500b5c364a5f07b4a2b167de7a6fb0 |
|
692 | @ rev: 3, phase: draft | |
693 |
| |
|
693 | | desc: Moved a to foo/bar | |
694 | o changeset: 5f6d8a4bf34ab274ccc9f631c2536964b8a3666d |
|
694 | o rev: 2, phase: draft | |
695 |
| |
|
695 | | desc: added b | |
696 | | o changeset: 8b6e13696c38e8445a759516474640c2f8dddef6 |
|
696 | | o rev: 1, phase: draft | |
697 |
|/ |
|
697 | |/ desc: added more things to a | |
698 | o changeset: 9092f1db7931481f93b37d5c9fbcfc341bcd7318 |
|
698 | o rev: 0, phase: draft | |
699 |
|
|
699 | desc: added a | |
700 |
|
700 | |||
701 | When the sourcecommitlimit is small and we have more drafts, we use heuristics only |
|
701 | When the sourcecommitlimit is small and we have more drafts, we use heuristics only | |
702 |
|
702 | |||
703 |
$ hg rebase -s |
|
703 | $ hg rebase -s 1 -d . | |
704 | rebasing 1:8b6e13696c38 "added more things to a" |
|
704 | rebasing 1:8b6e13696c38 "added more things to a" | |
705 | file 'a' was deleted in local [dest] but was modified in other [source]. |
|
705 | file 'a' was deleted in local [dest] but was modified in other [source]. | |
706 | What do you want to do? |
|
706 | What do you want to do? | |
@@ -713,7 +713,7 b' fullcopytracing' | |||||
713 |
|
713 | |||
714 | $ hg rebase --abort |
|
714 | $ hg rebase --abort | |
715 | rebase aborted |
|
715 | rebase aborted | |
716 |
$ hg rebase -s |
|
716 | $ hg rebase -s 1 -d . --config experimental.copytrace.sourcecommitlimit=100 | |
717 | rebasing 1:8b6e13696c38 "added more things to a" |
|
717 | rebasing 1:8b6e13696c38 "added more things to a" | |
718 | merging foo/bar and a to foo/bar |
|
718 | merging foo/bar and a to foo/bar | |
719 | saved backup bundle to $TESTTMP/repo/repo/repo/.hg/strip-backup/8b6e13696c38-fc14ac83-rebase.hg |
|
719 | saved backup bundle to $TESTTMP/repo/repo/repo/.hg/strip-backup/8b6e13696c38-fc14ac83-rebase.hg |
General Comments 0
You need to be logged in to leave comments.
Login now