##// END OF EJS Templates
test-command-template: test the phase template more precisely...
Jordi Gutiérrez Hermoso -
r24929:6fb98463 default
parent child Browse files
Show More
@@ -108,32 +108,52 b' as default style, except for extra phase'
108 $ hg log --style default > style.out
108 $ hg log --style default > style.out
109 $ cmp log.out style.out || diff -u log.out style.out
109 $ cmp log.out style.out || diff -u log.out style.out
110 $ hg log -T phases > phases.out
110 $ hg log -T phases > phases.out
111 $ diff -u log.out phases.out | grep "phase:"
111 $ diff -U 0 log.out phases.out | grep -v '^---\|^+++'
112 @@ -2,0 +3 @@
112 +phase: draft
113 +phase: draft
114 @@ -6,0 +8 @@
113 +phase: draft
115 +phase: draft
116 @@ -11,0 +14 @@
114 +phase: draft
117 +phase: draft
118 @@ -17,0 +21 @@
115 +phase: draft
119 +phase: draft
120 @@ -24,0 +29 @@
116 +phase: draft
121 +phase: draft
122 @@ -31,0 +37 @@
117 +phase: draft
123 +phase: draft
124 @@ -36,0 +43 @@
118 +phase: draft
125 +phase: draft
126 @@ -41,0 +49 @@
119 +phase: draft
127 +phase: draft
128 @@ -46,0 +55 @@
120 +phase: draft
129 +phase: draft
130 @@ -51,0 +61 @@
121 +phase: draft
131 +phase: draft
122
132
123 $ hg log -v > log.out
133 $ hg log -v > log.out
124 $ hg log -v --style default > style.out
134 $ hg log -v --style default > style.out
125 $ cmp log.out style.out || diff -u log.out style.out
135 $ cmp log.out style.out || diff -u log.out style.out
126 $ hg log -v -T phases > phases.out
136 $ hg log -v -T phases > phases.out
127 $ diff -u log.out phases.out | grep phase:
137 $ diff -U 0 log.out phases.out | grep -v '^---\|^+++'
138 @@ -2,0 +3 @@
128 +phase: draft
139 +phase: draft
140 @@ -7,0 +9 @@
129 +phase: draft
141 +phase: draft
142 @@ -15,0 +18 @@
130 +phase: draft
143 +phase: draft
144 @@ -24,0 +28 @@
131 +phase: draft
145 +phase: draft
146 @@ -33,0 +38 @@
132 +phase: draft
147 +phase: draft
148 @@ -43,0 +49 @@
133 +phase: draft
149 +phase: draft
150 @@ -50,0 +57 @@
134 +phase: draft
151 +phase: draft
152 @@ -58,0 +66 @@
135 +phase: draft
153 +phase: draft
154 @@ -66,0 +75 @@
136 +phase: draft
155 +phase: draft
156 @@ -77,0 +87 @@
137 +phase: draft
157 +phase: draft
138
158
139 $ hg log -q > log.out
159 $ hg log -q > log.out
@@ -160,32 +180,52 b' Default style should also preserve color'
160 $ hg --color=debug log --style default > style.out
180 $ hg --color=debug log --style default > style.out
161 $ cmp log.out style.out || diff -u log.out style.out
181 $ cmp log.out style.out || diff -u log.out style.out
162 $ hg --color=debug log -T phases > phases.out
182 $ hg --color=debug log -T phases > phases.out
163 $ diff -u log.out phases.out | grep phase:
183 $ diff -U 0 log.out phases.out | grep -v '^---\|^+++'
184 @@ -2,0 +3 @@
164 +[log.phase|phase: draft]
185 +[log.phase|phase: draft]
186 @@ -6,0 +8 @@
165 +[log.phase|phase: draft]
187 +[log.phase|phase: draft]
188 @@ -11,0 +14 @@
166 +[log.phase|phase: draft]
189 +[log.phase|phase: draft]
190 @@ -17,0 +21 @@
167 +[log.phase|phase: draft]
191 +[log.phase|phase: draft]
192 @@ -24,0 +29 @@
168 +[log.phase|phase: draft]
193 +[log.phase|phase: draft]
194 @@ -31,0 +37 @@
169 +[log.phase|phase: draft]
195 +[log.phase|phase: draft]
196 @@ -36,0 +43 @@
170 +[log.phase|phase: draft]
197 +[log.phase|phase: draft]
198 @@ -41,0 +49 @@
171 +[log.phase|phase: draft]
199 +[log.phase|phase: draft]
200 @@ -46,0 +55 @@
172 +[log.phase|phase: draft]
201 +[log.phase|phase: draft]
202 @@ -51,0 +61 @@
173 +[log.phase|phase: draft]
203 +[log.phase|phase: draft]
174
204
175 $ hg --color=debug -v log > log.out
205 $ hg --color=debug -v log > log.out
176 $ hg --color=debug -v log --style default > style.out
206 $ hg --color=debug -v log --style default > style.out
177 $ cmp log.out style.out || diff -u log.out style.out
207 $ cmp log.out style.out || diff -u log.out style.out
178 $ hg --color=debug -v log -T phases > phases.out
208 $ hg --color=debug -v log -T phases > phases.out
179 $ diff -u log.out phases.out | grep phase:
209 $ diff -U 0 log.out phases.out | grep -v '^---\|^+++'
210 @@ -2,0 +3 @@
180 +[log.phase|phase: draft]
211 +[log.phase|phase: draft]
212 @@ -7,0 +9 @@
181 +[log.phase|phase: draft]
213 +[log.phase|phase: draft]
214 @@ -15,0 +18 @@
182 +[log.phase|phase: draft]
215 +[log.phase|phase: draft]
216 @@ -24,0 +28 @@
183 +[log.phase|phase: draft]
217 +[log.phase|phase: draft]
218 @@ -33,0 +38 @@
184 +[log.phase|phase: draft]
219 +[log.phase|phase: draft]
220 @@ -43,0 +49 @@
185 +[log.phase|phase: draft]
221 +[log.phase|phase: draft]
222 @@ -50,0 +57 @@
186 +[log.phase|phase: draft]
223 +[log.phase|phase: draft]
224 @@ -58,0 +66 @@
187 +[log.phase|phase: draft]
225 +[log.phase|phase: draft]
226 @@ -66,0 +75 @@
188 +[log.phase|phase: draft]
227 +[log.phase|phase: draft]
228 @@ -77,0 +87 @@
189 +[log.phase|phase: draft]
229 +[log.phase|phase: draft]
190
230
191 $ hg --color=debug -q log > log.out
231 $ hg --color=debug -q log > log.out
General Comments 0
You need to be logged in to leave comments. Login now