Show More
@@ -1,16 +1,25 | |||||
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 |
|
12 | $ cat sub/b | |
4 | echo 123 > a |
|
13 | 321 | |
5 | hg add a |
|
14 | ||
6 | hg commit -m "first" a |
|
15 | $ hg co 0 | |
7 | mkdir sub |
|
16 | 0 files updated, 0 files merged, 1 files removed, 0 files unresolved | |
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" |
|
|||
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 |
|
NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now