equal
deleted
inserted
replaced
648 > EOF |
648 > EOF |
649 $ $PYTHON evil-commit.py |
649 $ $PYTHON evil-commit.py |
650 $ hg co --clean tip |
650 $ hg co --clean tip |
651 abort: path contains illegal component: HG8B6C~2/hgrc (glob) |
651 abort: path contains illegal component: HG8B6C~2/hgrc (glob) |
652 [255] |
652 [255] |
|
653 |
|
654 # test that an unmodified commit template message aborts |
|
655 |
|
656 $ hg init unmodified_commit_template |
|
657 $ cd unmodified_commit_template |
|
658 $ echo foo > foo |
|
659 $ hg add foo |
|
660 $ hg commit -m "foo" |
|
661 $ cat >> .hg/hgrc <<EOF |
|
662 > [committemplate] |
|
663 > changeset.commit = HI THIS IS NOT STRIPPED |
|
664 > HG: this is customized commit template |
|
665 > HG: {extramsg} |
|
666 > {if(activebookmark, |
|
667 > "HG: bookmark '{activebookmark}' is activated\n", |
|
668 > "HG: no bookmark is activated\n")}{subrepos % |
|
669 > "HG: subrepo '{subrepo}' is changed\n"} |
|
670 > EOF |
|
671 $ cat > $TESTTMP/notouching.sh <<EOF |
|
672 > true |
|
673 > EOF |
|
674 $ echo foo2 > foo2 |
|
675 $ hg add foo2 |
|
676 $ HGEDITOR="sh $TESTTMP/notouching.sh" hg commit |
|
677 abort: commit message unchanged |
|
678 [255] |
|
679 $ cd .. |