test-empty-dir
16 lines
| 274 B
| text/plain
|
TextLexer
/ tests / test-empty-dir
mpm@selenic.com
|
r578 | #!/bin/sh | ||
hg init | ||||
echo 123 > a | ||||
hg add a | ||||
Thomas Arendsen Hein
|
r1933 | hg commit -m "first" -d "1000000 0" a | ||
mpm@selenic.com
|
r578 | mkdir sub | ||
echo 321 > sub/b | ||||
hg add sub/b | ||||
Thomas Arendsen Hein
|
r1933 | hg commit -m "second" -d "1000000 0" sub/b | ||
mpm@selenic.com
|
r578 | cat sub/b | ||
hg co 0 | ||||
Peter van Dijk
|
r1926 | cat sub/b 2>/dev/null || echo "sub/b not present" | ||
Alexis S. L. Carvalho
|
r3469 | test -d sub || echo "sub not present" | ||
mpm@selenic.com
|
r578 | |||
true | ||||