Show More
@@ -1,16 +1,25 b'' | |||
|
1 | #!/bin/sh | |
|
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 | |
|
2 | 11 | |
|
3 | hg init | |
|
4 | echo 123 > a | |
|
5 | hg add a | |
|
6 | hg commit -m "first" a | |
|
7 | mkdir sub | |
|
8 | echo 321 > sub/b | |
|
9 | hg add sub/b | |
|
10 | hg commit -m "second" sub/b | |
|
11 | cat sub/b | |
|
12 | hg co 0 | |
|
13 | cat sub/b 2>/dev/null || echo "sub/b not present" | |
|
14 | test -d sub || echo "sub not present" | |
|
12 | $ cat sub/b | |
|
13 | 321 | |
|
14 | ||
|
15 | $ hg co 0 | |
|
16 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
|
15 | 17 | |
|
16 | true | |
|
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 |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now