Fix readline prompt to correctly handle UTF-8 characters
[tig.git] / test / tigrc / compat-error-test
blob342f0d6597ebec2db7164042ee70da16b24e90a1
1 #!/bin/sh
3 # Check error messages for renamed settings, actions and colirs in
4 # tigrc.
6 . libtest.sh
8 tigrc <<EOF
9 set show-date = default
10 set show-author = full
11 set author-width = 18
12 set show-filename = auto
13 set filename-width = 18
14 set show-file-size = default
15 set show-rev-graph = yes
16 set show-line-numbers = no
17 set line-number-interval = 5
18 set show-refs = yes
19 set show-id = no
20 set title-overflow = no
21 set read-git-colors = yes
23 # Renamed to view-refs
24 bind generic B view-blame
26 # Keymap renamed to refs
27 bind branch [ refresh
29 # Changes in key parsing
30 bind generic Enter enter
31 bind generic < back
32 bind generic ^N next
33 bind generic ^[v move-page-up
34 bind generic F5 refresh
36 # Replaced by prompt commands - ':/' and ':toggle'
37 bind stage @ stage-next
38 bind stage [ diff-context-down
39 bind stage ] diff-context-up
40 bind diff [ diff-context-down
41 bind diff ] diff-context-up
42 bind generic . toggle-lineno
43 bind generic D toggle-date
44 bind generic A toggle-author
45 bind generic g toggle-rev-graph
46 bind generic ~ toggle-graphic
47 bind generic H toggle-filename
48 bind generic F toggle-refs
49 bind generic ? toggle-show-changes
50 bind generic I toggle-sort-order
51 bind generic i toggle-sort-field
52 bind generic W toggle-ignore-space
53 bind generic ? toggle-commit-order
54 bind generic X toggle-id
55 bind generic % toggle-files
56 bind generic $ toggle-title-overflow
57 bind generic ? toggle-file-size
58 bind generic ? toggle-untracked-dirs
60 # Removed
61 color main-revgraph magenta default
63 # Consolidated
64 color tree-head default default bold
65 color tree-dir yellow default normal
66 color tree-file default default normal
67 color stat-head yellow default
68 color stat-section cyan default
69 color help-keymap cyan default
70 EOF
72 steps ":quit"
74 test_tig
76 assert_equals stderr <<EOF
77 tig warning: ~/.tigrc:1: show-date is obsolete; see tigrc(5) for how to set the date column option
78 tig warning: ~/.tigrc:2: show-author is obsolete; see tigrc(5) for how to set the author column option
79 tig warning: ~/.tigrc:3: author-width is obsolete; see tigrc(5) for how to set the author column option
80 tig warning: ~/.tigrc:4: show-filename is obsolete; see tigrc(5) for how to set the file-name column option
81 tig warning: ~/.tigrc:5: filename-width is obsolete; see tigrc(5) for how to set the file-name column option
82 tig warning: ~/.tigrc:6: show-file-size is obsolete; see tigrc(5) for how to set the file-size column option
83 tig warning: ~/.tigrc:7: show-rev-graph is obsolete; see tigrc(5) for how to set the commit-title column option
84 tig warning: ~/.tigrc:8: show-line-numbers is obsolete; see tigrc(5) for how to set the line-number column option
85 tig warning: ~/.tigrc:9: line-number-interval is obsolete; see tigrc(5) for how to set the line-number column option
86 tig warning: ~/.tigrc:10: show-refs is obsolete; see tigrc(5) for how to set the commit-title column option
87 tig warning: ~/.tigrc:11: show-id is obsolete; see tigrc(5) for how to set the id column option
88 tig warning: ~/.tigrc:12: title-overflow is obsolete; see tigrc(5) for how to set the commit-title and text column option
89 tig warning: ~/.tigrc:13: read-git-colors has been obsoleted by the git-colors option
90 tig warning: ~/.tigrc:22: Except for <Esc> combos only one key is allowed in key combos: Enter
91 tig warning: ~/.tigrc:23: Missing '>' from key mapping: <
92 tig warning: ~/.tigrc:24: Control key mapping must now use '<Ctrl-N>' instead of '^N'
93 tig warning: ~/.tigrc:25: Escape key combo must now use '<Esc>v' instead of '^[v'
94 tig warning: ~/.tigrc:26: Except for <Esc> combos only one key is allowed in key combos: F5
95 tig warning: ~/.tigrc:29: stage-next has been replaced by \`:/^@@'
96 tig warning: ~/.tigrc:30: diff-context-down has been replaced by \`:toggle diff-context -1'
97 tig warning: ~/.tigrc:31: diff-context-up has been replaced by \`:toggle diff-context +1'
98 tig warning: ~/.tigrc:32: diff-context-down has been replaced by \`:toggle diff-context -1'
99 tig warning: ~/.tigrc:33: diff-context-up has been replaced by \`:toggle diff-context +1'
100 tig warning: ~/.tigrc:34: toggle-lineno has been replaced by \`:toggle line-number'
101 tig warning: ~/.tigrc:35: toggle-date has been replaced by \`:toggle date'
102 tig warning: ~/.tigrc:36: toggle-author has been replaced by \`:toggle author'
103 tig warning: ~/.tigrc:37: toggle-rev-graph has been replaced by \`:toggle commit-title-graph'
104 tig warning: ~/.tigrc:38: toggle-graphic has been replaced by \`:toggle show-graphic'
105 tig warning: ~/.tigrc:39: toggle-filename has been replaced by \`:toggle filename'
106 tig warning: ~/.tigrc:40: toggle-refs has been replaced by \`:toggle commit-title-refs'
107 tig warning: ~/.tigrc:41: toggle-show-changes has been replaced by \`:toggle show-changes'
108 tig warning: ~/.tigrc:42: toggle-sort-order has been replaced by \`:toggle sort-order'
109 tig warning: ~/.tigrc:43: toggle-sort-field has been replaced by \`:toggle sort-field'
110 tig warning: ~/.tigrc:44: toggle-ignore-space has been replaced by \`:toggle show-ignore-space'
111 tig warning: ~/.tigrc:45: toggle-commit-order has been replaced by \`:toggle show-commit-order'
112 tig warning: ~/.tigrc:46: toggle-id has been replaced by \`:toggle id'
113 tig warning: ~/.tigrc:47: toggle-files has been replaced by \`:toggle file-filter'
114 tig warning: ~/.tigrc:48: toggle-title-overflow has been replaced by \`:toggle commit-title-overflow'
115 tig warning: ~/.tigrc:49: toggle-file-size has been replaced by \`:toggle file-size'
116 tig warning: ~/.tigrc:50: toggle-untracked-dirs has been replaced by \`:toggle status-untracked-dirs'
117 tig warning: ~/.tigrc:53: main-revgraph is obsolete
118 tig warning: ~/.tigrc:56: tree-head has been replaced by tree.header
119 tig warning: ~/.tigrc:57: tree-dir has been replaced by tree.directory
120 tig warning: ~/.tigrc:58: tree-file has been replaced by tree.file
121 tig warning: ~/.tigrc:59: stat-head has been replaced by status.header
122 tig warning: ~/.tigrc:60: stat-section has been replaced by status.section
123 tig warning: ~/.tigrc:61: help-keymap has been replaced by help.section
124 tig warning: Errors while loading HOME/.tigrc.