tests/test-status
changeset 6202 0ab0da2215d7
parent 6201 305d4450036a
child 6328 991f7518c3f3
equal deleted inserted replaced
6201:305d4450036a 6202:0ab0da2215d7
    60 hg copy modified copied
    60 hg copy modified copied
    61 
    61 
    62 # Run status with 2 different flags.
    62 # Run status with 2 different flags.
    63 # Check if result is the same or different.
    63 # Check if result is the same or different.
    64 # If result is not as expected, raise error
    64 # If result is not as expected, raise error
    65 function assert {
    65 assert() {
    66     hg status $1 > ../a
    66     hg status $1 > ../a
    67     hg status $2 > ../b
    67     hg status $2 > ../b
    68     out=`diff ../a ../b`
    68     out=`diff ../a ../b`
    69     if [ $? -ne 0 ]; then
    69     if [ $? -ne 0 ]; then
    70         out=1
    70         out=1