Mercurial > hg
comparison tests/test-convert-git.t @ 30815:c5bf2e8ec18c
convert: remove "replacecommitter" action
As pointed out by Yuya, this action doesn't add much (any?) value.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 14 Jan 2017 10:11:19 -0800 |
parents | 2cbbd4622ab0 |
children | 8fa3ab6221b9 |
comparison
equal
deleted
inserted
replaced
30814:b96c57c1f860 | 30815:c5bf2e8ec18c |
---|---|
489 abort: committeractions cannot define both messagedifferent and messagealways | 489 abort: committeractions cannot define both messagedifferent and messagealways |
490 [255] | 490 [255] |
491 | 491 |
492 $ hg --config convert.git.committeractions=dropcommitter,replaceauthor convert git-repo4 bad-committer | 492 $ hg --config convert.git.committeractions=dropcommitter,replaceauthor convert git-repo4 bad-committer |
493 initializing destination bad-committer repository | 493 initializing destination bad-committer repository |
494 abort: committeractions cannot define both dropcommitter and replaceauthor/replacecommitter | 494 abort: committeractions cannot define both dropcommitter and replaceauthor |
495 [255] | |
496 | |
497 $ hg --config convert.git.committeractions=dropcommitter,replacecommitter convert git-repo4 bad-committer | |
498 initializing destination bad-committer repository | |
499 abort: committeractions cannot define both dropcommitter and replaceauthor/replacecommitter | |
500 [255] | 495 [255] |
501 | 496 |
502 $ hg --config convert.git.committeractions=dropcommitter,messagealways convert git-repo4 bad-committer | 497 $ hg --config convert.git.committeractions=dropcommitter,messagealways convert git-repo4 bad-committer |
503 initializing destination bad-committer repository | 498 initializing destination bad-committer repository |
504 abort: committeractions cannot define both dropcommitter and messagealways | 499 abort: committeractions cannot define both dropcommitter and messagealways |
505 [255] | 500 [255] |
506 | 501 |
507 $ hg --config convert.git.committeractions=replaceauthor,replacecommitter convert git-repo4 bad-committer | |
508 initializing destination bad-committer repository | |
509 abort: committeractions cannot define both replaceauthor and replacecommitter | |
510 [255] | |
511 | |
512 custom prefix on messagedifferent works | 502 custom prefix on messagedifferent works |
513 | 503 |
514 $ hg --config convert.git.committeractions=messagedifferent=different: convert git-repo4 git-repo4-hg-messagedifferentprefix | 504 $ hg --config convert.git.committeractions=messagedifferent=different: convert git-repo4 git-repo4-hg-messagedifferentprefix |
515 initializing destination git-repo4-hg-messagedifferentprefix repository | 505 initializing destination git-repo4-hg-messagedifferentprefix repository |
516 scanning source... | 506 scanning source... |
626 $ hg -R git-repo4-hg-replaceauthor log -v | 616 $ hg -R git-repo4-hg-replaceauthor log -v |
627 changeset: 1:122c1d8999ea | 617 changeset: 1:122c1d8999ea |
628 bookmark: master | 618 bookmark: master |
629 tag: tip | 619 tag: tip |
630 user: test <test@example.org> | 620 user: test <test@example.org> |
631 date: Mon Jan 01 00:00:21 2007 +0000 | |
632 files: foo | |
633 description: | |
634 addfoo2 | |
635 | |
636 | |
637 changeset: 0:0735477b0224 | |
638 user: test <test@example.org> | |
639 date: Mon Jan 01 00:00:20 2007 +0000 | |
640 files: foo | |
641 description: | |
642 addfoo | |
643 | |
644 | |
645 | |
646 replacecommitter replaces committer with author | |
647 | |
648 $ hg --config convert.git.committeractions=replacecommitter convert git-repo4 git-repo4-hg-replacecommitter | |
649 initializing destination git-repo4-hg-replacecommitter repository | |
650 scanning source... | |
651 sorting... | |
652 converting... | |
653 1 addfoo | |
654 0 addfoo2 | |
655 updating bookmarks | |
656 | |
657 $ hg -R git-repo4-hg-replacecommitter log -v | |
658 changeset: 1:190b2da396cc | |
659 bookmark: master | |
660 tag: tip | |
661 user: nottest <test@example.org> | |
662 date: Mon Jan 01 00:00:21 2007 +0000 | 621 date: Mon Jan 01 00:00:21 2007 +0000 |
663 files: foo | 622 files: foo |
664 description: | 623 description: |
665 addfoo2 | 624 addfoo2 |
666 | 625 |