Mercurial > evolve
comparison tests/test-evolve.t @ 3013:945a0989e41b
packaging: merge stable back into default
6.7.0 has been released.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Wed, 27 Sep 2017 16:26:30 +0200 |
parents | bd7e8be29542 |
children | 4b951a9a6895 |
comparison
equal
deleted
inserted
replaced
3012:081070828703 | 3013:945a0989e41b |
---|---|
325 | 325 |
326 This results in a new single changeset for our amended changeset, and the old | 326 This results in a new single changeset for our amended changeset, and the old |
327 changeset plus the updating changeset are hidden from view by default:: | 327 changeset plus the updating changeset are hidden from view by default:: |
328 | 328 |
329 $ hg log | 329 $ hg log |
330 4 feature-B: another feature (child of 568a468b60fc) - test | 330 3 feature-B: another feature (child of 568a468b60fc) - test |
331 1 feature-A: a nifty feature - test | 331 1 feature-A: a nifty feature - test |
332 0 : base - test | 332 0 : base - test |
333 | 333 |
334 $ hg up feature-A -q | 334 $ hg up feature-A -q |
335 $ hg bookmark -i feature-A | 335 $ hg bookmark -i feature-A |
342 | 342 |
343 | 343 |
344 (amend of on ancestors) | 344 (amend of on ancestors) |
345 | 345 |
346 $ hg amend | 346 $ hg amend |
347 1 new unstable changesets | 347 1 new orphan changesets |
348 $ hg log | 348 $ hg log |
349 6 feature-A: a nifty feature - test | 349 4 feature-A: a nifty feature - test |
350 4 feature-B: another feature (child of 568a468b60fc) - test | 350 3 feature-B: another feature (child of 568a468b60fc) - test |
351 1 : a nifty feature - test | 351 1 : a nifty feature - test |
352 0 : base - test | 352 0 : base - test |
353 $ hg up -q 0 | 353 $ hg up -q 0 |
354 $ glog --hidden | 354 $ glog --hidden |
355 o 6:ba0ec09b1bab@default(draft) a nifty feature | 355 o 4:ba0ec09b1bab@default(draft) a nifty feature |
356 | | 356 | |
357 | x 5:c296b79833d1@default(draft) temporary amend commit for 568a468b60fc | 357 | o 3:6992c59c6b06@default(draft) another feature (child of 568a468b60fc) |
358 | | | 358 | | |
359 | | o 4:6992c59c6b06@default(draft) another feature (child of 568a468b60fc) | |
360 | |/ | |
361 | | x 3:c97947cdc7a2@default(draft) temporary amend commit for 73296a82292a | |
362 | | | | |
363 | | x 2:73296a82292a@default(draft) another feature (child of 568a468b60fc) | 359 | | x 2:73296a82292a@default(draft) another feature (child of 568a468b60fc) |
364 | |/ | 360 | |/ |
365 | x 1:568a468b60fc@default(draft) a nifty feature | 361 | x 1:568a468b60fc@default(draft) a nifty feature |
366 |/ | 362 |/ |
367 @ 0:e55e0562ee93@default(public) base | 363 @ 0:e55e0562ee93@default(public) base |
368 | 364 |
369 $ hg debugobsolete | 365 $ hg debugobsolete |
370 73296a82292a76fb8a7061969d2489ec0d84cd5e 6992c59c6b06a1b4a92e24ff884829ae026d018b 0 (*) {'ef1': '8', 'user': 'test'} (glob) | 366 73296a82292a76fb8a7061969d2489ec0d84cd5e 6992c59c6b06a1b4a92e24ff884829ae026d018b 0 (*) {'ef1': '8', 'user': 'test'} (glob) |
371 c97947cdc7a2a11cf78419f5c2c3dd3944ec79e8 0 {73296a82292a76fb8a7061969d2489ec0d84cd5e} (*) {'ef1': '0', 'user': 'test'} (glob) | |
372 568a468b60fc99a42d5d4ddbe181caff1eef308d ba0ec09b1babf3489b567853807f452edd46704f 0 (*) {'ef1': '8', 'user': 'test'} (glob) | 367 568a468b60fc99a42d5d4ddbe181caff1eef308d ba0ec09b1babf3489b567853807f452edd46704f 0 (*) {'ef1': '8', 'user': 'test'} (glob) |
373 c296b79833d1d497f33144786174bf35e04e44a3 0 {568a468b60fc99a42d5d4ddbe181caff1eef308d} (*) {'ef1': '0', 'user': 'test'} (glob) | |
374 $ hg evolve | 368 $ hg evolve |
375 move:[4] another feature (child of 568a468b60fc) | 369 move:[3] another feature (child of 568a468b60fc) |
376 atop:[6] a nifty feature | 370 atop:[4] a nifty feature |
377 merging main-file-1 | 371 merging main-file-1 |
378 working directory is now at 99833d22b0c6 | 372 working directory is now at 99833d22b0c6 |
379 $ hg log | 373 $ hg log |
380 7 feature-B: another feature (child of ba0ec09b1bab) - test | 374 5 feature-B: another feature (child of ba0ec09b1bab) - test |
381 6 feature-A: a nifty feature - test | 375 4 feature-A: a nifty feature - test |
382 0 : base - test | 376 0 : base - test |
383 | 377 |
384 Test commit -o options | 378 Test commit -o options |
385 | 379 |
386 $ hg up 6 | 380 $ hg up -r "desc('a nifty feature')" |
387 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 381 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
388 $ hg revert -r 7 --all | 382 $ hg revert -r "desc('another feature')" --all |
389 adding file-from-B | 383 adding file-from-B |
390 reverting main-file-1 | 384 reverting main-file-1 |
391 $ sed -i'' -e s/Zwei/deux/ main-file-1 | 385 $ sed -i'' -e s/Zwei/deux/ main-file-1 |
392 $ hg commit -m 'another feature that rox' -o 7 | 386 $ hg commit -m 'another feature that rox' -o 5 |
393 created new head | 387 created new head |
394 $ hg log | 388 $ hg log |
395 8 feature-B: another feature that rox - test | 389 6 feature-B: another feature that rox - test |
396 6 feature-A: a nifty feature - test | 390 4 feature-A: a nifty feature - test |
397 0 : base - test | 391 0 : base - test |
398 | 392 |
399 phase change turning obsolete changeset public issue a bumped warning | 393 phase change turning obsolete changeset public issue a bumped warning |
400 | 394 |
401 $ hg phase --hidden --public 7 | 395 $ hg phase --hidden --public 99833d22b0c6 |
402 1 new bumped changesets | 396 1 new phase-divergent changesets |
403 | 397 |
404 all solving bumped troubled | 398 all solving bumped troubled |
405 | 399 |
406 $ hg log -G | 400 $ glog |
407 @ 8 feature-B: another feature that rox - test | 401 @ 6:47d52a103155@default(draft) another feature that rox |
408 | | 402 | |
409 | o 7 : another feature (child of ba0ec09b1bab) - test | 403 | o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) |
410 |/ | 404 |/ |
411 o 6 feature-A: a nifty feature - test | 405 o 4:ba0ec09b1bab@default(public) a nifty feature |
412 | | 406 | |
413 o 0 : base - test | 407 o 0:e55e0562ee93@default(public) base |
414 | 408 |
415 $ hg evolve --any --traceback --phasedivergent | 409 $ hg evolve --any --traceback --phasedivergent |
416 recreate:[8] another feature that rox | 410 recreate:[6] another feature that rox |
417 atop:[7] another feature (child of ba0ec09b1bab) | 411 atop:[5] another feature (child of ba0ec09b1bab) |
418 computing new diff | 412 computing new diff |
419 committed as 6707c5e1c49d | 413 committed as 6707c5e1c49d |
420 working directory is now at 6707c5e1c49d | 414 working directory is now at 6707c5e1c49d |
421 $ hg log -G | 415 $ glog |
422 @ 9 feature-B: bumped update to 99833d22b0c6: - test | 416 @ 7:6707c5e1c49d@default(draft) bumped update to 99833d22b0c6: |
423 | | 417 | |
424 o 7 : another feature (child of ba0ec09b1bab) - test | 418 o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) |
425 | | 419 | |
426 o 6 feature-A: a nifty feature - test | 420 o 4:ba0ec09b1bab@default(public) a nifty feature |
427 | | 421 | |
428 o 0 : base - test | 422 o 0:e55e0562ee93@default(public) base |
429 | 423 |
430 $ hg diff --hidden -r 9 -r 8 | 424 $ hg diff --hidden -r 6707c5e1c49d -r 47d52a103155 |
431 $ hg diff -r 9^ -r 9 | 425 $ hg diff -r 6707c5e1c49d^ -r 6707c5e1c49d |
432 diff --git a/main-file-1 b/main-file-1 | 426 diff --git a/main-file-1 b/main-file-1 |
433 --- a/main-file-1 | 427 --- a/main-file-1 |
434 +++ b/main-file-1 | 428 +++ b/main-file-1 |
435 @@ -3,1 +3,1 @@ | 429 @@ -3,1 +3,1 @@ |
436 -Zwei | 430 -Zwei |
437 +deux | 431 +deux |
438 $ hg log -r 'bumped()' # no more bumped | 432 $ hg log -r 'phasedivergent()' # no more bumped |
439 | 433 |
440 test evolve --all | 434 test evolve --all |
441 $ sed -i'' -e s/deux/to/ main-file-1 | 435 $ sed -i'' -e s/deux/to/ main-file-1 |
442 $ hg commit -m 'dansk 2!' | 436 $ hg commit -m 'dansk 2!' |
443 $ sed -i'' -e s/Three/tre/ main-file-1 | 437 $ sed -i'' -e s/Three/tre/ main-file-1 |
444 $ hg commit -m 'dansk 3!' | 438 $ hg commit -m 'dansk 3!' |
445 $ hg update 9 | 439 $ hg update 6707c5e1c49d |
446 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 440 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
447 $ sed -i'' -e s/Un/Én/ main-file-1 | 441 $ sed -i'' -e s/Un/Én/ main-file-1 |
448 $ hg commit --amend -m 'dansk!' | 442 $ hg commit --amend -m 'dansk!' |
449 2 new unstable changesets | 443 2 new orphan changesets |
450 | 444 |
451 (ninja test for the {trouble} template: | 445 (ninja test for the {trouble} template: |
452 | 446 |
453 $ hg log -G --template '{rev} {troubles}\n' | 447 $ hg log -G --template '{rev} {troubles}\n' |
454 @ 13 | 448 @ 10 |
455 | | 449 | |
456 | o 11 orphan | 450 | o 9 orphan |
457 | | | 451 | | |
458 | o 10 orphan | 452 | o 8 orphan |
459 | | | 453 | | |
460 | x 9 | 454 | x 7 |
461 |/ | 455 |/ |
462 o 7 | 456 o 5 |
463 | | 457 | |
464 o 6 | 458 o 4 |
465 | | 459 | |
466 o 0 | 460 o 0 |
467 | 461 |
468 | 462 |
469 | 463 |
470 (/ninja) | 464 (/ninja) |
471 | 465 |
472 $ hg evolve --all --traceback | 466 $ hg evolve --all --traceback |
473 move:[10] dansk 2! | 467 move:[8] dansk 2! |
474 atop:[13] dansk! | 468 atop:[10] dansk! |
475 merging main-file-1 | 469 merging main-file-1 |
476 move:[11] dansk 3! | 470 move:[9] dansk 3! |
477 atop:[14] dansk 2! | 471 atop:[11] dansk 2! |
478 merging main-file-1 | 472 merging main-file-1 |
479 working directory is now at 68557e4f0048 | 473 working directory is now at 68557e4f0048 |
480 $ hg log -G | 474 $ hg log -G |
481 @ 15 : dansk 3! - test | 475 @ 12 : dansk 3! - test |
482 | | 476 | |
483 o 14 : dansk 2! - test | 477 o 11 : dansk 2! - test |
484 | | 478 | |
485 o 13 feature-B: dansk! - test | 479 o 10 feature-B: dansk! - test |
486 | | 480 | |
487 o 7 : another feature (child of ba0ec09b1bab) - test | 481 o 5 : another feature (child of ba0ec09b1bab) - test |
488 | | 482 | |
489 o 6 feature-A: a nifty feature - test | 483 o 4 feature-A: a nifty feature - test |
490 | | 484 | |
491 o 0 : base - test | 485 o 0 : base - test |
492 | 486 |
493 | 487 |
494 $ cd .. | 488 $ cd .. |
544 $ hg verify | 538 $ hg verify |
545 checking changesets | 539 checking changesets |
546 checking manifests | 540 checking manifests |
547 crosschecking files in changesets and manifests | 541 crosschecking files in changesets and manifests |
548 checking files | 542 checking files |
549 3 files, 4 changesets, 4 total revisions | 543 3 files, 3 changesets, 3 total revisions |
550 $ hg --config extensions.hgext.mq= strip 'extinct()' | 544 $ hg --config extensions.hgext.mq= strip 'extinct()' |
551 abort: empty revision set | 545 abort: empty revision set |
552 [255] | 546 [255] |
553 (do some garbare collection) | 547 (do some garbare collection) |
554 $ hg --config extensions.hgext.mq= strip --hidden 'extinct()' --config devel.strip-obsmarkers=no | 548 $ hg --config extensions.hgext.mq= strip --hidden 'extinct()' --config devel.strip-obsmarkers=no |
555 saved backup bundle to $TESTTMP/alpha/.hg/strip-backup/e87767087a57-d7bd82e9-backup.hg (glob) | 549 saved backup bundle to $TESTTMP/alpha/.hg/strip-backup/e87767087a57-a365b072-backup.hg (glob) |
556 $ hg verify | 550 $ hg verify |
557 checking changesets | 551 checking changesets |
558 checking manifests | 552 checking manifests |
559 crosschecking files in changesets and manifests | 553 crosschecking files in changesets and manifests |
560 checking files | 554 checking files |
569 searching for changes | 563 searching for changes |
570 adding changesets | 564 adding changesets |
571 adding manifests | 565 adding manifests |
572 adding file changes | 566 adding file changes |
573 added 1 changesets with 1 changes to 1 files | 567 added 1 changesets with 1 changes to 1 files |
574 2 new obsolescence markers | 568 1 new obsolescence markers |
575 (run 'hg update' to get a working copy) | 569 (run 'hg update' to get a working copy) |
576 $ hg up | 570 $ hg up |
577 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 571 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
578 | 572 |
579 $ cd .. | 573 $ cd .. |
768 | 762 |
769 $ hg olog | head -n 10 # hg touch makes the output unstable (fix it with devel option for more stable touch) | 763 $ hg olog | head -n 10 # hg touch makes the output unstable (fix it with devel option for more stable touch) |
770 @ d26d339c513f (12) add 4 | 764 @ d26d339c513f (12) add 4 |
771 |\ | 765 |\ |
772 x | af636757ce3b (11) add 3 | 766 x | af636757ce3b (11) add 3 |
773 |\ \ rewritten(description, user, parent, content) as d26d339c513f by test (Thu Jan 01 00:00:00 1970 +0000) | 767 |\ \ rewritten(description, user, parent, content) as d26d339c513f by test (*) (glob) |
774 | | | | 768 | | | |
775 | \ \ | 769 | \ \ |
776 | |\ \ | 770 | |\ \ |
777 | | | x ce341209337f (4) add 4 | 771 | | | x ce341209337f (4) add 4 |
778 | | | rewritten(description, user, content) as d26d339c513f by test (Thu Jan 01 00:00:00 1970 +0000) | 772 | | | rewritten(description, user, content) as d26d339c513f by test (*) (glob) |
779 | | | | 773 | | | |
780 | 774 |
781 Test obsstore stat | 775 Test obsstore stat |
782 | 776 |
783 $ hg debugobsstorestat | 777 $ hg debugobsstorestat |
829 adding b | 823 adding b |
830 $ hg mv a c | 824 $ hg mv a c |
831 $ hg ci -m c | 825 $ hg ci -m c |
832 $ hg prune .^ | 826 $ hg prune .^ |
833 1 changesets pruned | 827 1 changesets pruned |
834 1 new unstable changesets | 828 1 new orphan changesets |
835 $ hg stab --any | 829 $ hg stab --any |
836 move:[15] c | 830 move:[15] c |
837 atop:[13] a | 831 atop:[13] a |
838 working directory is now at 3742bde73477 | 832 working directory is now at 3742bde73477 |
839 $ hg st -C --change=tip | 833 $ hg st -C --change=tip |
846 $ cd ../work | 840 $ cd ../work |
847 $ hg fold --from .^ --message "Folding with custom commit message" | 841 $ hg fold --from .^ --message "Folding with custom commit message" |
848 2 changesets folded | 842 2 changesets folded |
849 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 843 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
850 $ glog | 844 $ glog |
851 @ 16:98cb758db56d@default(draft) Folding with custom commit message | 845 @ 13:98cb758db56d@default(draft) Folding with custom commit message |
852 | | 846 | |
853 o 13:0a2f9b959bb4@default(draft) dansk! | 847 o 10:0a2f9b959bb4@default(draft) dansk! |
854 | | 848 | |
855 o 7:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) | 849 o 5:99833d22b0c6@default(public) another feature (child of ba0ec09b1bab) |
856 | | 850 | |
857 o 6:ba0ec09b1bab@default(public) a nifty feature | 851 o 4:ba0ec09b1bab@default(public) a nifty feature |
858 | | 852 | |
859 o 0:e55e0562ee93@default(public) base | 853 o 0:e55e0562ee93@default(public) base |
860 | 854 |
861 $ cat > commit-message <<EOF | 855 $ cat > commit-message <<EOF |
862 > A longer | 856 > A longer |
865 | 859 |
866 $ hg fold --from .^ --logfile commit-message | 860 $ hg fold --from .^ --logfile commit-message |
867 2 changesets folded | 861 2 changesets folded |
868 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 862 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
869 $ hg qlog | 863 $ hg qlog |
870 17 - a00182c58888 A longer | 864 14 - a00182c58888 A longer |
871 commit message (draft) | 865 commit message (draft) |
872 7 - 99833d22b0c6 another feature (child of ba0ec09b1bab) (public) | 866 5 - 99833d22b0c6 another feature (child of ba0ec09b1bab) (public) |
873 6 - ba0ec09b1bab a nifty feature (public) | 867 4 - ba0ec09b1bab a nifty feature (public) |
874 0 - e55e0562ee93 base (public) | 868 0 - e55e0562ee93 base (public) |
875 | 869 |
876 $ cd .. | 870 $ cd .. |
877 | 871 |
878 Test branch preservation: | 872 Test branch preservation: |
906 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 900 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
907 $ hg branch mybranch | 901 $ hg branch mybranch |
908 marked working directory as branch mybranch | 902 marked working directory as branch mybranch |
909 (branches are permanent and global, did you want a bookmark?) | 903 (branches are permanent and global, did you want a bookmark?) |
910 $ hg amend | 904 $ hg amend |
911 1 new unstable changesets | 905 1 new orphan changesets |
912 | 906 |
913 $ hg evolve | 907 $ hg evolve |
914 move:[3] a3 | 908 move:[3] a3 |
915 atop:[5] a2 | 909 atop:[4] a2 |
916 working directory is now at 7c5649f73d11 | 910 working directory is now at 7c5649f73d11 |
917 | 911 |
918 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' | 912 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
919 @ 6 [mybranch] a3 | 913 @ 5 [mybranch] a3 |
920 | | 914 | |
921 o 5 [mybranch] a2 | 915 o 4 [mybranch] a2 |
922 | | 916 | |
923 o 1 [default] a1 | 917 o 1 [default] a1 |
924 | | 918 | |
925 o 0 [default] a0 | 919 o 0 [default] a0 |
926 | 920 |
928 branch change preserved | 922 branch change preserved |
929 | 923 |
930 $ hg up 'desc(a1)' | 924 $ hg up 'desc(a1)' |
931 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 925 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
932 $ hg amend -m 'a1_' | 926 $ hg amend -m 'a1_' |
933 2 new unstable changesets | 927 2 new orphan changesets |
934 $ hg evolve | 928 $ hg evolve |
935 move:[5] a2 | 929 move:[4] a2 |
936 atop:[7] a1_ | 930 atop:[6] a1_ |
937 working directory is now at eb07e22a0e63 | 931 working directory is now at eb07e22a0e63 |
938 $ hg evolve | 932 $ hg evolve |
939 move:[6] a3 | 933 move:[5] a3 |
940 atop:[8] a2 | 934 atop:[7] a2 |
941 working directory is now at 777c26ca5e78 | 935 working directory is now at 777c26ca5e78 |
942 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' | 936 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
943 @ 9 [mybranch] a3 | 937 @ 8 [mybranch] a3 |
944 | | 938 | |
945 o 8 [mybranch] a2 | 939 o 7 [mybranch] a2 |
946 | | 940 | |
947 o 7 [default] a1_ | 941 o 6 [default] a1_ |
948 | | 942 | |
949 o 0 [default] a0 | 943 o 0 [default] a0 |
950 | 944 |
951 | 945 |
952 Evolve from the middle of a stack pick the right changesets. | 946 Evolve from the middle of a stack pick the right changesets. |
953 | 947 |
954 $ hg up 7 | 948 $ hg up -r "desc('a1_')" |
955 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 949 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
956 $ hg ci --amend -m 'a1__' | 950 $ hg ci --amend -m 'a1__' |
957 2 new unstable changesets | 951 2 new orphan changesets |
958 | 952 |
959 $ hg up 8 | 953 $ hg up -r "desc('a2')" |
960 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 954 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
961 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' | 955 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
962 o 10 [default] a1__ | 956 o 9 [default] a1__ |
963 | | 957 | |
964 | o 9 [mybranch] a3 | 958 | o 8 [mybranch] a3 |
965 | | | 959 | | |
966 | @ 8 [mybranch] a2 | 960 | @ 7 [mybranch] a2 |
967 | | | 961 | | |
968 | x 7 [default] a1_ | 962 | x 6 [default] a1_ |
969 |/ | 963 |/ |
970 o 0 [default] a0 | 964 o 0 [default] a0 |
971 | 965 |
972 $ hg evolve | 966 $ hg evolve |
973 nothing to evolve on current working copy parent | 967 nothing to evolve on current working copy parent |
975 [2] | 969 [2] |
976 | 970 |
977 | 971 |
978 Evolve disables active bookmarks. | 972 Evolve disables active bookmarks. |
979 | 973 |
980 $ hg up 10 | 974 $ hg up -r "desc('a1__')" |
981 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 975 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
982 $ hg bookmark testbookmark | 976 $ hg bookmark testbookmark |
983 $ ls .hg/bookmarks* | 977 $ ls .hg/bookmarks* |
984 .hg/bookmarks | 978 .hg/bookmarks |
985 .hg/bookmarks.* (glob) | 979 .hg/bookmarks.* (glob) |
986 $ hg evolve | 980 $ hg evolve |
987 move:[8] a2 | 981 move:[7] a2 |
988 atop:[10] a1__ | 982 atop:[9] a1__ |
989 (leaving bookmark testbookmark) | 983 (leaving bookmark testbookmark) |
990 working directory is now at d952e93add6f | 984 working directory is now at d952e93add6f |
991 $ ls .hg/bookmarks* | 985 $ ls .hg/bookmarks* |
992 .hg/bookmarks | 986 .hg/bookmarks |
993 $ hg log -G | 987 $ glog |
994 @ 11 : a2 - test | 988 @ 10:d952e93add6f@mybranch(draft) a2 |
995 | | 989 | |
996 o 10 testbookmark: a1__ - test | 990 o 9:9f8b83c2e7f3@default(draft) a1__ |
997 | | 991 | |
998 | o 9 : a3 - test | 992 | o 8:777c26ca5e78@mybranch(draft) a3 |
999 | | | 993 | | |
1000 | x 8 : a2 - test | 994 | x 7:eb07e22a0e63@mybranch(draft) a2 |
1001 | | | 995 | | |
1002 | x 7 : a1_ - test | 996 | x 6:faafc6cea0ba@default(draft) a1_ |
1003 |/ | 997 |/ |
1004 o 0 : a0 - test | 998 o 0:07c1c36d9ef0@default(draft) a0 |
1005 | 999 |
1006 | 1000 |
1007 Possibility to select what trouble to solve first, asking for bumped before | 1001 Possibility to select what trouble to solve first, asking for bumped before |
1008 divergent | 1002 divergent |
1009 $ hg up 10 | 1003 $ hg up -r "desc('a1__')" |
1010 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1004 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1011 $ hg revert -r 11 --all | 1005 $ hg revert -r d952e93add6f --all |
1012 reverting a | 1006 reverting a |
1013 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' | 1007 $ hg log -G --template '{rev} [{branch}] {desc|firstline}\n' |
1014 o 11 [mybranch] a2 | 1008 o 10 [mybranch] a2 |
1015 | | 1009 | |
1016 @ 10 [default] a1__ | 1010 @ 9 [default] a1__ |
1017 | | 1011 | |
1018 | o 9 [mybranch] a3 | 1012 | o 8 [mybranch] a3 |
1019 | | | 1013 | | |
1020 | x 8 [mybranch] a2 | 1014 | x 7 [mybranch] a2 |
1021 | | | 1015 | | |
1022 | x 7 [default] a1_ | 1016 | x 6 [default] a1_ |
1023 |/ | 1017 |/ |
1024 o 0 [default] a0 | 1018 o 0 [default] a0 |
1025 | 1019 |
1026 $ echo "hello world" > newfile | 1020 $ echo "hello world" > newfile |
1027 $ hg add newfile | 1021 $ hg add newfile |
1028 $ hg commit -m "add new file bumped" -o 11 | 1022 $ hg commit -m "add new file bumped" -o 10 |
1029 $ hg phase --public --hidden 11 | 1023 $ hg phase --public --hidden d952e93add6f |
1030 1 new bumped changesets | 1024 1 new phase-divergent changesets |
1031 $ hg log -G | 1025 $ hg log -G |
1032 @ 12 : add new file bumped - test | 1026 @ 11 : add new file bumped - test |
1033 | | 1027 | |
1034 | o 11 : a2 - test | 1028 | o 10 : a2 - test |
1035 |/ | 1029 |/ |
1036 o 10 testbookmark: a1__ - test | 1030 o 9 testbookmark: a1__ - test |
1037 | | 1031 | |
1038 | o 9 : a3 - test | 1032 | o 8 : a3 - test |
1039 | | | 1033 | | |
1040 | x 8 : a2 - test | 1034 | x 7 : a2 - test |
1041 | | | 1035 | | |
1042 | x 7 : a1_ - test | 1036 | x 6 : a1_ - test |
1043 |/ | 1037 |/ |
1044 o 0 : a0 - test | 1038 o 0 : a0 - test |
1045 | 1039 |
1046 | 1040 |
1047 Now we have a bumped and an unstable changeset, we solve the bumped first | 1041 Now we have a bumped and an unstable changeset, we solve the bumped first |
1048 normally the unstable changeset would be solve first | 1042 normally the unstable changeset would be solve first |
1049 | 1043 |
1050 $ hg log -G | 1044 $ hg log -G |
1051 @ 12 : add new file bumped - test | 1045 @ 11 : add new file bumped - test |
1052 | | 1046 | |
1053 | o 11 : a2 - test | 1047 | o 10 : a2 - test |
1054 |/ | 1048 |/ |
1055 o 10 testbookmark: a1__ - test | 1049 o 9 testbookmark: a1__ - test |
1056 | | 1050 | |
1057 | o 9 : a3 - test | 1051 | o 8 : a3 - test |
1058 | | | 1052 | | |
1059 | x 8 : a2 - test | 1053 | x 7 : a2 - test |
1060 | | | 1054 | | |
1061 | x 7 : a1_ - test | 1055 | x 6 : a1_ - test |
1062 |/ | 1056 |/ |
1063 o 0 : a0 - test | 1057 o 0 : a0 - test |
1064 | 1058 |
1065 $ hg evolve -r 12 --phasedivergent | 1059 $ hg evolve -r "desc('add new file bumped')" --phasedivergent |
1066 recreate:[12] add new file bumped | 1060 recreate:[11] add new file bumped |
1067 atop:[11] a2 | 1061 atop:[10] a2 |
1068 computing new diff | 1062 computing new diff |
1069 committed as f15d32934071 | 1063 committed as f15d32934071 |
1070 working directory is now at f15d32934071 | 1064 working directory is now at f15d32934071 |
1071 $ hg evolve --any | 1065 $ hg evolve --any |
1072 move:[9] a3 | 1066 move:[8] a3 |
1073 atop:[13] bumped update to d952e93add6f: | 1067 atop:[12] bumped update to d952e93add6f: |
1074 working directory is now at cce26b684bfe | 1068 working directory is now at cce26b684bfe |
1075 $ glog | 1069 $ glog |
1076 @ 14:cce26b684bfe@default(draft) a3 | 1070 @ 13:cce26b684bfe@default(draft) a3 |
1077 | | 1071 | |
1078 o 13:f15d32934071@default(draft) bumped update to d952e93add6f: | 1072 o 12:f15d32934071@default(draft) bumped update to d952e93add6f: |
1079 | | 1073 | |
1080 o 11:d952e93add6f@mybranch(public) a2 | 1074 o 10:d952e93add6f@mybranch(public) a2 |
1081 | | 1075 | |
1082 o 10:9f8b83c2e7f3@default(public) a1__ | 1076 o 9:9f8b83c2e7f3@default(public) a1__ |
1083 | | 1077 | |
1084 o 0:07c1c36d9ef0@default(public) a0 | 1078 o 0:07c1c36d9ef0@default(public) a0 |
1085 | 1079 |
1086 | 1080 |
1087 Check that we can resolve troubles in a revset with more than one commit | 1081 Check that we can resolve troubles in a revset with more than one commit |
1094 created new head | 1088 created new head |
1095 $ hg up cce26b684bfe | 1089 $ hg up cce26b684bfe |
1096 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1090 0 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1097 $ printf "newline\nnewline\n" >> a | 1091 $ printf "newline\nnewline\n" >> a |
1098 $ hg log -G | 1092 $ hg log -G |
1099 o 16 : add gh - test | 1093 o 15 : add gh - test |
1100 | | 1094 | |
1101 | o 15 : add gg - test | 1095 | o 14 : add gg - test |
1102 |/ | 1096 |/ |
1103 @ 14 : a3 - test | 1097 @ 13 : a3 - test |
1104 | | 1098 | |
1105 o 13 : bumped update to d952e93add6f: - test | 1099 o 12 : bumped update to d952e93add6f: - test |
1106 | | 1100 | |
1107 o 11 : a2 - test | 1101 o 10 : a2 - test |
1108 | | 1102 | |
1109 o 10 testbookmark: a1__ - test | 1103 o 9 testbookmark: a1__ - test |
1110 | | 1104 | |
1111 o 0 : a0 - test | 1105 o 0 : a0 - test |
1112 | 1106 |
1113 $ hg amend | 1107 $ hg amend |
1114 2 new unstable changesets | 1108 2 new orphan changesets |
1115 $ hg log -G | 1109 $ glog |
1116 @ 18 : a3 - test | 1110 @ 16:edc3c9de504e@default(draft) a3 |
1117 | | 1111 | |
1118 | o 16 : add gh - test | 1112 | o 15:beb41503aa3e@default(draft) add gh |
1119 | | | 1113 | | |
1120 | | o 15 : add gg - test | 1114 | | o 14:27247fcb2df6@default(draft) add gg |
1121 | |/ | 1115 | |/ |
1122 | x 14 : a3 - test | 1116 | x 13:cce26b684bfe@default(draft) a3 |
1123 |/ | 1117 |/ |
1124 o 13 : bumped update to d952e93add6f: - test | 1118 o 12:f15d32934071@default(draft) bumped update to d952e93add6f: |
1125 | | 1119 | |
1126 o 11 : a2 - test | 1120 o 10:d952e93add6f@mybranch(public) a2 |
1127 | | 1121 | |
1128 o 10 testbookmark: a1__ - test | 1122 o 9:9f8b83c2e7f3@default(public) a1__ |
1129 | | 1123 | |
1130 o 0 : a0 - test | 1124 o 0:07c1c36d9ef0@default(public) a0 |
1131 | 1125 |
1132 | 1126 |
1133 Evolving an empty revset should do nothing | 1127 Evolving an empty revset should do nothing |
1134 $ hg evolve --rev "16 and 15" | 1128 $ hg evolve --rev "beb41503aa3e and 27247fcb2df6" |
1135 set of specified revisions is empty | 1129 set of specified revisions is empty |
1136 [1] | 1130 [1] |
1137 | 1131 |
1138 $ hg evolve --rev "14::" --phasedivergent | 1132 $ hg evolve --rev "cce26b684bfe::" --phasedivergent |
1139 no phasedivergent changesets in specified revisions | 1133 no phasedivergent changesets in specified revisions |
1140 (do you want to use --orphan) | 1134 (do you want to use --orphan) |
1141 [2] | 1135 [2] |
1142 $ hg evolve --rev "14::" --orphan | 1136 $ hg evolve --rev "cce26b684bfe::" --orphan |
1143 move:[15] add gg | 1137 move:[14] add gg |
1144 atop:[18] a3 | 1138 atop:[16] a3 |
1145 move:[16] add gh | 1139 move:[15] add gh |
1146 atop:[18] a3 | 1140 atop:[16] a3 |
1147 working directory is now at e02107f98737 | 1141 working directory is now at e02107f98737 |
1148 $ hg log -G | 1142 $ glog |
1149 @ 20 : add gh - test | 1143 @ 18:e02107f98737@default(draft) add gh |
1150 | | 1144 | |
1151 | o 19 : add gg - test | 1145 | o 17:24e63b319adf@default(draft) add gg |
1152 |/ | 1146 |/ |
1153 o 18 : a3 - test | 1147 o 16:edc3c9de504e@default(draft) a3 |
1154 | | 1148 | |
1155 o 13 : bumped update to d952e93add6f: - test | 1149 o 12:f15d32934071@default(draft) bumped update to d952e93add6f: |
1156 | | 1150 | |
1157 o 11 : a2 - test | 1151 o 10:d952e93add6f@mybranch(public) a2 |
1158 | | 1152 | |
1159 o 10 testbookmark: a1__ - test | 1153 o 9:9f8b83c2e7f3@default(public) a1__ |
1160 | | 1154 | |
1161 o 0 : a0 - test | 1155 o 0:07c1c36d9ef0@default(public) a0 |
1162 | 1156 |
1163 Enabling commands selectively, no command enabled, next and fold and unknown | 1157 Enabling commands selectively, no command enabled, next and fold and unknown |
1164 $ cat >> $HGRCPATH <<EOF | 1158 $ cat >> $HGRCPATH <<EOF |
1165 > [experimental] | 1159 > [experimental] |
1166 > evolution=createmarkers | 1160 > evolution=createmarkers |
1260 > [experimental] | 1254 > [experimental] |
1261 > evolution=all | 1255 > evolution=all |
1262 > EOF | 1256 > EOF |
1263 | 1257 |
1264 Check hg evolve --rev on singled out commit | 1258 Check hg evolve --rev on singled out commit |
1265 $ hg up 19 -C | 1259 $ hg up 24e63b319adf -C |
1266 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1260 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1267 $ mkcommit j1 | 1261 $ mkcommit j1 |
1268 $ mkcommit j2 | 1262 $ mkcommit j2 |
1269 $ mkcommit j3 | 1263 $ mkcommit j3 |
1270 $ hg up .^^ | 1264 $ hg up .^^ |
1271 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1265 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1272 $ echo "hello" > j4 | 1266 $ echo "hello" > j4 |
1273 $ hg add j4 | 1267 $ hg add j4 |
1274 $ hg amend | 1268 $ hg amend |
1275 2 new unstable changesets | 1269 2 new orphan changesets |
1276 $ glog -r "18::" | 1270 $ glog -r "edc3c9de504e::" |
1277 @ 25:8dc373be86d9@default(draft) add j1 | 1271 @ 22:8dc373be86d9@default(draft) add j1 |
1278 | | 1272 | |
1279 | o 23:d7eadcf6eccd@default(draft) add j3 | 1273 | o 21:d7eadcf6eccd@default(draft) add j3 |
1280 | | | 1274 | | |
1281 | o 22:2223ea564144@default(draft) add j2 | 1275 | o 20:2223ea564144@default(draft) add j2 |
1282 | | | 1276 | | |
1283 | x 21:48490698b269@default(draft) add j1 | 1277 | x 19:48490698b269@default(draft) add j1 |
1284 |/ | 1278 |/ |
1285 | o 20:e02107f98737@default(draft) add gh | 1279 | o 18:e02107f98737@default(draft) add gh |
1286 | | | 1280 | | |
1287 o | 19:24e63b319adf@default(draft) add gg | 1281 o | 17:24e63b319adf@default(draft) add gg |
1288 |/ | 1282 |/ |
1289 o 18:edc3c9de504e@default(draft) a3 | 1283 o 16:edc3c9de504e@default(draft) a3 |
1290 | | 1284 | |
1291 ~ | 1285 ~ |
1292 | 1286 |
1293 $ hg evolve --rev 23 --any | 1287 $ hg evolve --rev d7eadcf6eccd --any |
1294 abort: cannot specify both "--rev" and "--any" | 1288 abort: cannot specify both "--rev" and "--any" |
1295 [255] | 1289 [255] |
1296 $ hg evolve --rev 23 | 1290 $ hg evolve --rev d7eadcf6eccd |
1297 cannot solve instability of d7eadcf6eccd, skipping | 1291 cannot solve instability of d7eadcf6eccd, skipping |
1298 | 1292 |
1299 Check that uncommit respects the allowunstable option | 1293 Check that uncommit respects the allowunstable option |
1300 With only createmarkers we can only uncommit on a head | 1294 With only createmarkers we can only uncommit on a head |
1301 $ cat >> $HGRCPATH <<EOF | 1295 $ cat >> $HGRCPATH <<EOF |
1311 $ hg up 8dc373be86d9 | 1305 $ hg up 8dc373be86d9 |
1312 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1306 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1313 $ hg uncommit --all | 1307 $ hg uncommit --all |
1314 new changeset is empty | 1308 new changeset is empty |
1315 (use 'hg prune .' to remove it) | 1309 (use 'hg prune .' to remove it) |
1316 $ glog -r "18::" | 1310 $ glog -r "edc3c9de504e::" |
1317 @ 26:044804d0c10d@default(draft) add j1 | 1311 @ 23:044804d0c10d@default(draft) add j1 |
1318 | | 1312 | |
1319 | o 23:d7eadcf6eccd@default(draft) add j3 | 1313 | o 21:d7eadcf6eccd@default(draft) add j3 |
1320 | | | 1314 | | |
1321 | o 22:2223ea564144@default(draft) add j2 | 1315 | o 20:2223ea564144@default(draft) add j2 |
1322 | | | 1316 | | |
1323 | x 21:48490698b269@default(draft) add j1 | 1317 | x 19:48490698b269@default(draft) add j1 |
1324 |/ | 1318 |/ |
1325 | o 20:e02107f98737@default(draft) add gh | 1319 | o 18:e02107f98737@default(draft) add gh |
1326 | | | 1320 | | |
1327 o | 19:24e63b319adf@default(draft) add gg | 1321 o | 17:24e63b319adf@default(draft) add gg |
1328 |/ | 1322 |/ |
1329 o 18:edc3c9de504e@default(draft) a3 | 1323 o 16:edc3c9de504e@default(draft) a3 |
1330 | | 1324 | |
1331 ~ | 1325 ~ |
1332 | 1326 |
1333 Check that prune respects the allowunstable option | 1327 Check that prune respects the allowunstable option |
1334 $ hg up -C . | 1328 $ hg up -C . |
1335 0 files updated, 0 files merged, 0 files removed, 0 files unresolved | 1329 0 files updated, 0 files merged, 0 files removed, 0 files unresolved |
1336 $ hg up 20 | 1330 $ hg up e02107f98737 |
1337 1 files updated, 0 files merged, 1 files removed, 0 files unresolved | 1331 1 files updated, 0 files merged, 1 files removed, 0 files unresolved |
1338 $ hg evolve --all | 1332 $ hg evolve --all |
1339 nothing to evolve on current working copy parent | 1333 nothing to evolve on current working copy parent |
1340 (2 other orphan in the repository, do you want --any or --rev) | 1334 (2 other orphan in the repository, do you want --any or --rev) |
1341 [2] | 1335 [2] |
1342 $ hg evolve --all --any | 1336 $ hg evolve --all --any |
1343 move:[22] add j2 | 1337 move:[20] add j2 |
1344 atop:[26] add j1 | 1338 atop:[23] add j1 |
1345 move:[23] add j3 | 1339 move:[21] add j3 |
1346 atop:[27] add j2 | 1340 atop:[24] add j2 |
1347 working directory is now at c9a20e2d74aa | 1341 working directory is now at c9a20e2d74aa |
1348 $ glog -r "18::" | 1342 $ glog -r "edc3c9de504e::" |
1349 @ 28:c9a20e2d74aa@default(draft) add j3 | 1343 @ 25:c9a20e2d74aa@default(draft) add j3 |
1350 | | 1344 | |
1351 o 27:b0e3066231e2@default(draft) add j2 | 1345 o 24:b0e3066231e2@default(draft) add j2 |
1352 | | 1346 | |
1353 o 26:044804d0c10d@default(draft) add j1 | 1347 o 23:044804d0c10d@default(draft) add j1 |
1354 | | 1348 | |
1355 | o 20:e02107f98737@default(draft) add gh | 1349 | o 18:e02107f98737@default(draft) add gh |
1356 | | | 1350 | | |
1357 o | 19:24e63b319adf@default(draft) add gg | 1351 o | 17:24e63b319adf@default(draft) add gg |
1358 |/ | 1352 |/ |
1359 o 18:edc3c9de504e@default(draft) a3 | 1353 o 16:edc3c9de504e@default(draft) a3 |
1360 | | 1354 | |
1361 ~ | 1355 ~ |
1362 $ hg up 19 | 1356 $ hg up 24e63b319adf |
1363 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1357 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1364 $ mkcommit c5_ | 1358 $ mkcommit c5_ |
1365 created new head | 1359 created new head |
1366 $ hg prune '26 + 27' | 1360 $ hg prune '044804d0c10d + b0e3066231e2' |
1367 abort: touch will orphan 1 descendants | 1361 abort: touch will orphan 1 descendants |
1368 (see 'hg help evolution.instability') | 1362 (see 'hg help evolution.instability') |
1369 [255] | 1363 [255] |
1370 $ hg prune '19::28' | 1364 $ hg prune '24e63b319adf::c9a20e2d74aa' |
1371 abort: touch will orphan 1 descendants | 1365 abort: touch will orphan 1 descendants |
1372 (see 'hg help evolution.instability') | 1366 (see 'hg help evolution.instability') |
1373 [255] | 1367 [255] |
1374 $ hg prune '26::' | 1368 $ hg prune '044804d0c10d::' |
1375 3 changesets pruned | 1369 3 changesets pruned |
1376 $ glog -r "18::" | 1370 $ glog -r "edc3c9de504e::" |
1377 @ 29:2251801b6c91@default(draft) add c5_ | 1371 @ 26:2251801b6c91@default(draft) add c5_ |
1378 | | 1372 | |
1379 | o 20:e02107f98737@default(draft) add gh | 1373 | o 18:e02107f98737@default(draft) add gh |
1380 | | | 1374 | | |
1381 o | 19:24e63b319adf@default(draft) add gg | 1375 o | 17:24e63b319adf@default(draft) add gg |
1382 |/ | 1376 |/ |
1383 o 18:edc3c9de504e@default(draft) a3 | 1377 o 16:edc3c9de504e@default(draft) a3 |
1384 | | 1378 | |
1385 ~ | 1379 ~ |
1386 | 1380 |
1387 Check that fold respects the allowunstable option | 1381 Check that fold respects the allowunstable option |
1388 | 1382 |
1390 | 1384 |
1391 $ hg up edc3c9de504e | 1385 $ hg up edc3c9de504e |
1392 0 files updated, 0 files merged, 2 files removed, 0 files unresolved | 1386 0 files updated, 0 files merged, 2 files removed, 0 files unresolved |
1393 $ mkcommit unstableifparentisfolded | 1387 $ mkcommit unstableifparentisfolded |
1394 created new head | 1388 created new head |
1395 $ glog -r "18::" | 1389 $ glog -r "edc3c9de504e::" |
1396 @ 30:68330ac625b8@default(draft) add unstableifparentisfolded | 1390 @ 27:68330ac625b8@default(draft) add unstableifparentisfolded |
1397 | | 1391 | |
1398 | o 29:2251801b6c91@default(draft) add c5_ | 1392 | o 26:2251801b6c91@default(draft) add c5_ |
1399 | | | 1393 | | |
1400 +---o 20:e02107f98737@default(draft) add gh | 1394 +---o 18:e02107f98737@default(draft) add gh |
1401 | | | 1395 | | |
1402 | o 19:24e63b319adf@default(draft) add gg | 1396 | o 17:24e63b319adf@default(draft) add gg |
1403 |/ | 1397 |/ |
1404 o 18:edc3c9de504e@default(draft) a3 | 1398 o 16:edc3c9de504e@default(draft) a3 |
1405 | | 1399 | |
1406 ~ | 1400 ~ |
1407 | 1401 |
1408 $ hg fold --exact "19::" | 1402 $ hg fold --exact "24e63b319adf::" |
1409 2 changesets folded | 1403 2 changesets folded |
1410 | 1404 |
1411 Check that evolve shows error while handling split commits | 1405 Check that evolve shows error while handling split commits |
1412 -------------------------------------- | 1406 -------------------------------------- |
1413 | 1407 |
1414 $ cat >> $HGRCPATH <<EOF | 1408 $ cat >> $HGRCPATH <<EOF |
1415 > [experimental] | 1409 > [experimental] |
1416 > evolution=all | 1410 > evolution=all |
1417 > EOF | 1411 > EOF |
1418 | 1412 |
1419 $ glog -r "18::" | 1413 $ glog -r "edc3c9de504e::" |
1420 o 31:580886d07058@default(draft) add gg | 1414 o 28:580886d07058@default(draft) add gg |
1421 | | 1415 | |
1422 | @ 30:68330ac625b8@default(draft) add unstableifparentisfolded | 1416 | @ 27:68330ac625b8@default(draft) add unstableifparentisfolded |
1423 |/ | 1417 |/ |
1424 | o 20:e02107f98737@default(draft) add gh | 1418 | o 18:e02107f98737@default(draft) add gh |
1425 |/ | 1419 |/ |
1426 o 18:edc3c9de504e@default(draft) a3 | 1420 o 16:edc3c9de504e@default(draft) a3 |
1427 | | 1421 | |
1428 ~ | 1422 ~ |
1429 | 1423 |
1430 Create a split commit | 1424 Create a split commit |
1431 $ printf "oo" > oo; | 1425 $ printf "oo" > oo; |
1442 $ printf "pp" > pp; | 1436 $ printf "pp" > pp; |
1443 $ hg add pp | 1437 $ hg add pp |
1444 $ hg commit -m "_pp" | 1438 $ hg commit -m "_pp" |
1445 $ hg prune --succ "desc(_oo) + desc(_pp)" -r "desc('oo+pp')" --split | 1439 $ hg prune --succ "desc(_oo) + desc(_pp)" -r "desc('oo+pp')" --split |
1446 1 changesets pruned | 1440 1 changesets pruned |
1447 1 new unstable changesets | 1441 1 new orphan changesets |
1448 $ glog -r "18::" | 1442 $ glog -r "edc3c9de504e::" |
1449 @ 35:7a555adf2b4a@default(draft) _pp | 1443 @ 32:7a555adf2b4a@default(draft) _pp |
1450 | | 1444 | |
1451 o 34:2be4d2d5bf34@default(draft) _oo | 1445 o 31:2be4d2d5bf34@default(draft) _oo |
1452 | | 1446 | |
1453 | o 33:53f0c003e03e@default(draft) add uu | 1447 | o 30:53f0c003e03e@default(draft) add uu |
1454 | | | 1448 | | |
1455 | x 32:1bf2152f4f82@default(draft) oo+pp | 1449 | x 29:1bf2152f4f82@default(draft) oo+pp |
1456 |/ | 1450 |/ |
1457 | o 31:580886d07058@default(draft) add gg | 1451 | o 28:580886d07058@default(draft) add gg |
1458 | | | 1452 | | |
1459 o | 30:68330ac625b8@default(draft) add unstableifparentisfolded | 1453 o | 27:68330ac625b8@default(draft) add unstableifparentisfolded |
1460 |/ | 1454 |/ |
1461 | o 20:e02107f98737@default(draft) add gh | 1455 | o 18:e02107f98737@default(draft) add gh |
1462 |/ | 1456 |/ |
1463 o 18:edc3c9de504e@default(draft) a3 | 1457 o 16:edc3c9de504e@default(draft) a3 |
1464 | | 1458 | |
1465 ~ | 1459 ~ |
1466 $ hg evolve --rev "18::" | 1460 $ hg evolve --rev "edc3c9de504e::" |
1467 move:[33] add uu | 1461 move:[30] add uu |
1468 atop:[35] _pp | 1462 atop:[32] _pp |
1469 working directory is now at 43c3f5ef149f | 1463 working directory is now at 43c3f5ef149f |
1470 | 1464 |
1471 | 1465 |
1472 Check that dirstate changes are kept at failure for conflicts (issue4966) | 1466 Check that dirstate changes are kept at failure for conflicts (issue4966) |
1473 ---------------------------------------- | 1467 ---------------------------------------- |
1474 | 1468 |
1475 $ echo "will be amended" > newfile | 1469 $ echo "will be amended" > newfile |
1476 $ hg commit -m "will be amended" | 1470 $ hg commit -m "will be amended" |
1477 $ hg parents | 1471 $ hg parents |
1478 37 : will be amended - test | 1472 34 : will be amended - test |
1479 | 1473 |
1480 $ echo "will be evolved safely" >> a | 1474 $ echo "will be evolved safely" >> a |
1481 $ hg commit -m "will be evolved safely" | 1475 $ hg commit -m "will be evolved safely" |
1482 | 1476 |
1483 $ echo "will cause conflict at evolve" > newfile | 1477 $ echo "will cause conflict at evolve" > newfile |
1484 $ echo "newly added" > newlyadded | 1478 $ echo "newly added" > newlyadded |
1485 $ hg add newlyadded | 1479 $ hg add newlyadded |
1486 $ hg commit -m "will cause conflict at evolve" | 1480 $ hg commit -m "will cause conflict at evolve" |
1487 | 1481 |
1488 $ glog -r "edc3c9de504e::" | 1482 $ glog -r "edc3c9de504e::" |
1489 @ 39:02e943732647@default(draft) will cause conflict at evolve | 1483 @ 36:02e943732647@default(draft) will cause conflict at evolve |
1490 | | 1484 | |
1491 o 38:f8e30e9317aa@default(draft) will be evolved safely | 1485 o 35:f8e30e9317aa@default(draft) will be evolved safely |
1492 | | 1486 | |
1493 o 37:36030b147271@default(draft) will be amended | 1487 o 34:36030b147271@default(draft) will be amended |
1494 | | 1488 | |
1495 o 36:43c3f5ef149f@default(draft) add uu | 1489 o 33:43c3f5ef149f@default(draft) add uu |
1496 | | 1490 | |
1497 o 35:7a555adf2b4a@default(draft) _pp | 1491 o 32:7a555adf2b4a@default(draft) _pp |
1498 | | 1492 | |
1499 o 34:2be4d2d5bf34@default(draft) _oo | 1493 o 31:2be4d2d5bf34@default(draft) _oo |
1500 | | 1494 | |
1501 | o 31:580886d07058@default(draft) add gg | 1495 | o 28:580886d07058@default(draft) add gg |
1502 | | | 1496 | | |
1503 o | 30:68330ac625b8@default(draft) add unstableifparentisfolded | 1497 o | 27:68330ac625b8@default(draft) add unstableifparentisfolded |
1504 |/ | 1498 |/ |
1505 | o 20:e02107f98737@default(draft) add gh | 1499 | o 18:e02107f98737@default(draft) add gh |
1506 |/ | 1500 |/ |
1507 o 18:edc3c9de504e@default(draft) a3 | 1501 o 16:edc3c9de504e@default(draft) a3 |
1508 | | 1502 | |
1509 ~ | 1503 ~ |
1510 | 1504 |
1511 $ hg update -q 36030b147271 | 1505 $ hg update -q 36030b147271 |
1512 $ echo "amended" > newfile | 1506 $ echo "amended" > newfile |
1513 $ hg amend -m "amended" | 1507 $ hg amend -m "amended" |
1514 2 new unstable changesets | 1508 2 new orphan changesets |
1515 | 1509 |
1516 $ hg evolve --rev "37::" | 1510 $ hg evolve --rev "36030b147271::" |
1517 move:[38] will be evolved safely | 1511 move:[35] will be evolved safely |
1518 atop:[41] amended | 1512 atop:[37] amended |
1519 move:[39] will cause conflict at evolve | 1513 move:[36] will cause conflict at evolve |
1520 atop:[42] will be evolved safely | 1514 atop:[38] will be evolved safely |
1521 merging newfile | 1515 merging newfile |
1522 warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') | 1516 warning: conflicts while merging newfile! (edit, then use 'hg resolve --mark') |
1523 evolve failed! | 1517 evolve failed! |
1524 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort | 1518 fix conflict and run 'hg evolve --continue' or use 'hg update -C .' to abort |
1525 abort: unresolved merge conflicts (see hg help resolve) | 1519 abort: unresolved merge conflicts (see hg help resolve) |
1526 [255] | 1520 [255] |
1527 | 1521 |
1528 $ glog -r "36::" --hidden | 1522 $ glog -r "43c3f5ef149f::" --hidden |
1529 @ 42:c904da5245b0@default(draft) will be evolved safely | 1523 @ 38:c904da5245b0@default(draft) will be evolved safely |
1530 | | 1524 | |
1531 o 41:34ae045ec400@default(draft) amended | 1525 o 37:34ae045ec400@default(draft) amended |
1532 | | 1526 | |
1533 | x 40:e88bee38ffc2@default(draft) temporary amend commit for 36030b147271 | 1527 | o 36:02e943732647@default(draft) will cause conflict at evolve |
1534 | | | 1528 | | |
1535 | | o 39:02e943732647@default(draft) will cause conflict at evolve | 1529 | x 35:f8e30e9317aa@default(draft) will be evolved safely |
1536 | | | | 1530 | | |
1537 | | x 38:f8e30e9317aa@default(draft) will be evolved safely | 1531 | x 34:36030b147271@default(draft) will be amended |
1538 | |/ | 1532 |/ |
1539 | x 37:36030b147271@default(draft) will be amended | 1533 o 33:43c3f5ef149f@default(draft) add uu |
1540 |/ | |
1541 o 36:43c3f5ef149f@default(draft) add uu | |
1542 | | 1534 | |
1543 ~ | 1535 ~ |
1544 | 1536 |
1545 $ hg status newlyadded | 1537 $ hg status newlyadded |
1546 A newlyadded | 1538 A newlyadded |