comparison tests/test-status.t @ 12328:b63f6422d2a7

tests: fix a bunch of pointless #s in unified tests
author Matt Mackall <mpm@selenic.com>
date Fri, 17 Sep 2010 17:03:08 -0500
parents 4c94b6d0fb1c
children 22f3353bcc36
comparison
equal deleted inserted replaced
12327:92e30e135581 12328:b63f6422d2a7
171 171
172 $ hg status -i ignoreddir/file 172 $ hg status -i ignoreddir/file
173 I ignoreddir/file 173 I ignoreddir/file
174 $ cd .. 174 $ cd ..
175 175
176 # check 'status -q' and some combinations 176 Check 'status -q' and some combinations
177 177
178 $ hg init repo3 178 $ hg init repo3
179 $ cd repo3 179 $ cd repo3
180 $ touch modified removed deleted ignored 180 $ touch modified removed deleted ignored
181 $ echo "^ignored$" > .hgignore 181 $ echo "^ignored$" > .hgignore
189 $ echo "test" >> modified 189 $ echo "test" >> modified
190 $ hg remove removed 190 $ hg remove removed
191 $ rm deleted 191 $ rm deleted
192 $ hg copy modified copied 192 $ hg copy modified copied
193 193
194 # Run status with 2 different flags. 194 Run status with 2 different flags.
195 # Check if result is the same or different. 195 Check if result is the same or different.
196 # If result is not as expected, raise error 196 If result is not as expected, raise error
197 197
198 $ assert() { 198 $ assert() {
199 > hg status $1 > ../a 199 > hg status $1 > ../a
200 > hg status $2 > ../b 200 > hg status $2 > ../b
201 > out=`diff ../a ../b` 201 > out=`diff ../a ../b`
212 > if [ $out -ne $3 ]; then 212 > if [ $out -ne $3 ]; then
213 > echo "Error on $1 and $2, should be $df." 213 > echo "Error on $1 and $2, should be $df."
214 > fi 214 > fi
215 > } 215 > }
216 216
217 # assert flag1 flag2 [0-same | 1-different] 217 Assert flag1 flag2 [0-same | 1-different]
218 218
219 $ assert "-q" "-mard" 0 219 $ assert "-q" "-mard" 0
220 $ assert "-A" "-marduicC" 0 220 $ assert "-A" "-marduicC" 0
221 $ assert "-qA" "-mardcC" 0 221 $ assert "-qA" "-mardcC" 0
222 $ assert "-qAui" "-A" 0 222 $ assert "-qAui" "-A" 0