Show More
@@ -976,3 +976,73 b' accidentally.' | |||||
976 | 2 |
|
976 | 2 | |
977 | 3 |
|
977 | 3 | |
978 | 4 |
|
978 | 4 | |
|
979 | ||||
|
980 | Test that color codes don't end up in the commit message template | |||
|
981 | ---------------------------------------------------- | |||
|
982 | ||||
|
983 | $ hg init $TESTTMP/colorless | |||
|
984 | $ cd $TESTTMP/colorless | |||
|
985 | $ echo 1 > file1 | |||
|
986 | $ echo 1 > file2 | |||
|
987 | $ hg ci -qAm initial | |||
|
988 | $ echo 2 > file1 | |||
|
989 | $ echo 2 > file2 | |||
|
990 | $ cat > $TESTTMP/messages <<EOF | |||
|
991 | > split1, modifying file1 | |||
|
992 | > -- | |||
|
993 | > split2, modifying file2 | |||
|
994 | > EOF | |||
|
995 | $ hg ci | |||
|
996 | EDITOR: | |||
|
997 | EDITOR: | |||
|
998 | EDITOR: HG: Enter commit message. Lines beginning with 'HG:' are removed. | |||
|
999 | EDITOR: HG: Leave message empty to abort commit. | |||
|
1000 | EDITOR: HG: -- | |||
|
1001 | EDITOR: HG: user: test | |||
|
1002 | EDITOR: HG: branch 'default' | |||
|
1003 | EDITOR: HG: changed file1 | |||
|
1004 | EDITOR: HG: changed file2 | |||
|
1005 | $ printf 'f\nn\na\n' | hg split --color=debug \ | |||
|
1006 | > --config command-templates.oneline-summary='{label("rev", rev)} {desc}' | |||
|
1007 | [diff.diffline|diff --git a/file1 b/file1] | |||
|
1008 | 1 hunks, 1 lines changed | |||
|
1009 | [ ui.prompt|examine changes to 'file1'? | |||
|
1010 | (enter ? for help) [Ynesfdaq?]] [ ui.promptecho|f] | |||
|
1011 | ||||
|
1012 | [diff.diffline|diff --git a/file2 b/file2] | |||
|
1013 | 1 hunks, 1 lines changed | |||
|
1014 | [ ui.prompt|examine changes to 'file2'? | |||
|
1015 | (enter ? for help) [Ynesfdaq?]] [ ui.promptecho|n] | |||
|
1016 | ||||
|
1017 | EDITOR: HG: Splitting 6432c65c3078. Write commit message for the first split changeset. | |||
|
1018 | EDITOR: split1, modifying file1 | |||
|
1019 | EDITOR: | |||
|
1020 | EDITOR: | |||
|
1021 | EDITOR: HG: Enter commit message. Lines beginning with 'HG:' are removed. | |||
|
1022 | EDITOR: HG: Leave message empty to abort commit. | |||
|
1023 | EDITOR: HG: -- | |||
|
1024 | EDITOR: HG: user: test | |||
|
1025 | EDITOR: HG: branch 'default' | |||
|
1026 | EDITOR: HG: changed file1 | |||
|
1027 | [ ui.status|created new head] | |||
|
1028 | [diff.diffline|diff --git a/file2 b/file2] | |||
|
1029 | 1 hunks, 1 lines changed | |||
|
1030 | [ ui.prompt|examine changes to 'file2'? | |||
|
1031 | (enter ? for help) [Ynesfdaq?]] [ ui.promptecho|a] | |||
|
1032 | ||||
|
1033 | EDITOR: HG: Splitting 6432c65c3078. So far it has been split into: | |||
|
1034 | EDITOR: HG: - [rev|2] split2, modifying file2 | |||
|
1035 | EDITOR: HG: Write commit message for the next split changeset. | |||
|
1036 | EDITOR: split1, modifying file1 | |||
|
1037 | EDITOR: | |||
|
1038 | EDITOR: | |||
|
1039 | EDITOR: HG: Enter commit message. Lines beginning with 'HG:' are removed. | |||
|
1040 | EDITOR: HG: Leave message empty to abort commit. | |||
|
1041 | EDITOR: HG: -- | |||
|
1042 | EDITOR: HG: user: test | |||
|
1043 | EDITOR: HG: branch 'default' | |||
|
1044 | EDITOR: HG: changed file2 | |||
|
1045 | [ ui.warning|transaction abort!] | |||
|
1046 | [ ui.warning|rollback completed] | |||
|
1047 | [ ui.error|abort: empty commit message] | |||
|
1048 | [10] |
General Comments 0
You need to be logged in to leave comments.
Login now