comparison tests/test-sharing.t @ 3802:4bad80f1aad3

evolve: pop up editor if conflicts occur while merging commit messages Last patch added support for merging commit messages while resolving content divergence. In case of conflicts we fallback to one of the divergent commit messages. After this patch, we will pop up an editor where user has to resolve the conflicts in the commit messages and then continue. Tests are added for this. We need to fix handling in test-sharing.t to use HGEDITOR to fix conflicts and pass the new commit message. Future improvement can be that we should respect HGMERGE while merging commit descriptions too.
author Pulkit Goyal <7895pulkit@gmail.com>
date Wed, 06 Jun 2018 03:26:47 +0530
parents dc81a788f278
children f9dad99a90d5
comparison
equal deleted inserted replaced
3801:ee78135b2f45 3802:4bad80f1aad3
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)
512 merging "other" content-divergent changeset 'e3f99ce9d9cd' 519 merging "other" content-divergent changeset 'e3f99ce9d9cd'
513 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