Mercurial > hg-stable
comparison tests/test-empty-dir.t @ 12158:019cd2826d21
tests: unify test-empty-dir
author | Adrian Buehlmann <adrian@cadifra.com> |
---|---|
date | Thu, 02 Sep 2010 17:32:22 +0200 |
parents | tests/test-empty-dir@4c94b6d0fb1c |
children | 3b165c127690 |
comparison
equal
deleted
inserted
replaced
12157:88250a460bf8 | 12158:019cd2826d21 |
---|---|
1 $ hg init | |
2 | |
3 $ echo 123 > a | |
4 $ hg add a | |
5 $ hg commit -m "first" a | |
6 | |
7 $ mkdir sub | |
8 $ echo 321 > sub/b | |
9 $ hg add sub/b | |
10 $ hg commit -m "second" sub/b | |
11 | |
12 $ cat sub/b | |
13 321 | |
14 | |
15 $ hg co 0 | |
16 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
17 | |
18 $ cat sub/b 2>/dev/null || echo "sub/b not present" | |
19 sub/b not present | |
20 | |
21 $ test -d sub || echo "sub not present" | |
22 sub not present | |
23 | |
24 $ true | |
25 |