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