tests/test-empty-dir
changeset 1933 7544700fd931
parent 1926 ba198d17eea9
child 3428 7012c889e8f2
equal deleted inserted replaced
1932:82995896d5af 1933:7544700fd931
     1 #!/bin/sh
     1 #!/bin/sh
     2 
     2 
     3 hg init
     3 hg init
     4 echo 123 > a
     4 echo 123 > a
     5 hg add a
     5 hg add a
     6 hg commit -m "first" -d "0 0" a
     6 hg commit -m "first" -d "1000000 0" a
     7 mkdir sub
     7 mkdir sub
     8 echo 321 > sub/b
     8 echo 321 > sub/b
     9 hg add sub/b
     9 hg add sub/b
    10 hg commit -m "second" -d "0 0" sub/b
    10 hg commit -m "second" -d "1000000 0" sub/b
    11 cat sub/b
    11 cat sub/b
    12 hg co 0
    12 hg co 0
    13 cat sub/b 2>/dev/null || echo "sub/b not present"
    13 cat sub/b 2>/dev/null || echo "sub/b not present"
    14 ls sub 2>/dev/null || echo "sub not present"
    14 ls sub 2>/dev/null || echo "sub not present"
    15 
    15