Mercurial > evolve
comparison tests/test-sharing.t @ 3914:96945ea908df stable
branching: merge default into stable
The stable branch of Mercurial core now contains Mercurial 4.7 so evolve branch
policy requires this merge. The @ bookmark is in the right location, so people
doing clone will get to the latest release.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Tue, 31 Jul 2018 12:52:06 +0200 |
parents | f9dad99a90d5 |
children | d00f0c369bc7 ef22eef37ecc |
comparison
equal
deleted
inserted
replaced
3901:f2b8429db565 | 3914:96945ea908df |
---|---|
503 $ hg --hidden shortlog -r 'successors(2fe6)' | 503 $ hg --hidden shortlog -r 'successors(2fe6)' |
504 5:a360947f6faf draft fix bug 24 (v2 by bob) | 504 5:a360947f6faf draft fix bug 24 (v2 by bob) |
505 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) | 505 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) |
506 | 506 |
507 Use evolve to fix the divergence. | 507 Use evolve to fix the divergence. |
508 $ HGMERGE=internal:other hg evolve --content-divergent | 508 $ cat > editor.sh <<EOF |
509 > #!/bin/sh | |
510 > cat > \$1 <<ENDOF | |
511 > fix bug 24 (v2 by bob) | |
512 > ENDOF | |
513 > EOF | |
514 | |
515 $ HGEDITOR='sh ./editor.sh' HGMERGE=internal:other hg evolve --content-divergent | |
509 merge:[5] fix bug 24 (v2 by bob) | 516 merge:[5] fix bug 24 (v2 by bob) |
510 with: [6] fix bug 24 (v2 by alice) | 517 with: [6] fix bug 24 (v2 by alice) |
511 base: [4] fix bug 24 (v1) | 518 base: [4] fix bug 24 (v1) |
519 merging "other" content-divergent changeset 'e3f99ce9d9cd' | |
512 0 files updated, 1 files merged, 0 files removed, 0 files unresolved | 520 0 files updated, 1 files merged, 0 files removed, 0 files unresolved |
513 working directory is now at 5ad6037c046c | 521 working directory is now at 711ede2d7a26 |
514 $ hg log -q -r 'contentdivergent()' | 522 $ hg log -q -r 'contentdivergent()' |
515 | 523 |
516 Figure SG10: Bob's repository after fixing divergence. | 524 Figure SG10: Bob's repository after fixing divergence. |
517 $ hg --hidden shortlog -G -r 3:: | 525 $ hg --hidden shortlog -G -r 3:: |
518 @ 7:5ad6037c046c draft fix bug 24 (v2 by bob) | 526 @ 7:711ede2d7a26 draft fix bug 24 (v2 by bob) |
519 | | 527 | |
520 | x 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) | 528 | x 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) |
521 |/ | 529 |/ |
522 | x 5:a360947f6faf draft fix bug 24 (v2 by bob) | 530 | x 5:a360947f6faf draft fix bug 24 (v2 by bob) |
523 |/ | 531 |/ |
524 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) | 532 | x 4:2fe6c4bd32d0 draft fix bug 24 (v1) |
525 |/ | 533 |/ |
526 o 3:a06ec1bf97bd public fix bug 15 (v2) | 534 o 3:a06ec1bf97bd public fix bug 15 (v2) |
527 | | 535 | |
528 ~ | 536 ~ |
529 $ hg --hidden shortlog -r 'precursors(5ad6037c046c)' | 537 $ hg --hidden shortlog -r 'precursors(711ede2d7a26)' |
530 5:a360947f6faf draft fix bug 24 (v2 by bob) | 538 5:a360947f6faf draft fix bug 24 (v2 by bob) |
531 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) | 539 6:e3f99ce9d9cd draft fix bug 24 (v2 by alice) |
532 $ cat file1 | 540 $ cat file1 |
533 Do stuff. | 541 Do stuff. |
534 pretty good fix | 542 pretty good fix |