Show More
@@ -0,0 +1,34 b'' | |||||
|
1 | #!/bin/sh | |||
|
2 | ||||
|
3 | hg init repo1 | |||
|
4 | cd repo1 | |||
|
5 | mkdir a b a/1 b/1 b/2 | |||
|
6 | touch in_root a/in_a b/in_b a/1/in_a_1 b/1/in_b_1 b/2/in_b_2 | |||
|
7 | echo "hg status in repo root:" | |||
|
8 | hg status | |||
|
9 | echo "hg status . in repo root:" | |||
|
10 | hg status . | |||
|
11 | for dir in a b a/1 b/1 b/2; do | |||
|
12 | echo "hg status in $dir:" | |||
|
13 | hg status --cwd "$dir" | |||
|
14 | echo "hg status . in $dir:" | |||
|
15 | hg status --cwd "$dir" . | |||
|
16 | echo "hg status .. in $dir:" | |||
|
17 | hg status --cwd "$dir" .. | |||
|
18 | done | |||
|
19 | cd .. | |||
|
20 | ||||
|
21 | hg init repo2 | |||
|
22 | cd repo2 | |||
|
23 | touch modified removed deleted ignored | |||
|
24 | echo "ignored" > .hgignore | |||
|
25 | hg ci -A -m 'initial checkin' -d "0 0" | |||
|
26 | sleep 1 # make sure mtime is changed | |||
|
27 | touch modified added unknown ignored | |||
|
28 | hg add added | |||
|
29 | hg remove removed | |||
|
30 | rm deleted | |||
|
31 | echo "hg status:" | |||
|
32 | hg status | |||
|
33 | echo "hg status modified added removed deleted unknown never-existed ignored:" | |||
|
34 | hg status modified added removed deleted unknown never-existed ignored |
@@ -0,0 +1,103 b'' | |||||
|
1 | hg status in repo root: | |||
|
2 | ? a/1/in_a_1 | |||
|
3 | ? a/in_a | |||
|
4 | ? b/1/in_b_1 | |||
|
5 | ? b/2/in_b_2 | |||
|
6 | ? b/in_b | |||
|
7 | ? in_root | |||
|
8 | hg status . in repo root: | |||
|
9 | ? a/1/in_a_1 | |||
|
10 | ? a/in_a | |||
|
11 | ? b/1/in_b_1 | |||
|
12 | ? b/2/in_b_2 | |||
|
13 | ? b/in_b | |||
|
14 | ? in_root | |||
|
15 | hg status in a: | |||
|
16 | ? a/1/in_a_1 | |||
|
17 | ? a/in_a | |||
|
18 | ? b/1/in_b_1 | |||
|
19 | ? b/2/in_b_2 | |||
|
20 | ? b/in_b | |||
|
21 | ? in_root | |||
|
22 | hg status . in a: | |||
|
23 | ? 1/in_a_1 | |||
|
24 | ? in_a | |||
|
25 | hg status .. in a: | |||
|
26 | ? 1/in_a_1 | |||
|
27 | ? in_a | |||
|
28 | ? ../b/1/in_b_1 | |||
|
29 | ? ../b/2/in_b_2 | |||
|
30 | ? ../b/in_b | |||
|
31 | ? ../in_root | |||
|
32 | hg status in b: | |||
|
33 | ? a/1/in_a_1 | |||
|
34 | ? a/in_a | |||
|
35 | ? b/1/in_b_1 | |||
|
36 | ? b/2/in_b_2 | |||
|
37 | ? b/in_b | |||
|
38 | ? in_root | |||
|
39 | hg status . in b: | |||
|
40 | ? 1/in_b_1 | |||
|
41 | ? 2/in_b_2 | |||
|
42 | ? in_b | |||
|
43 | hg status .. in b: | |||
|
44 | ? ../a/1/in_a_1 | |||
|
45 | ? ../a/in_a | |||
|
46 | ? 1/in_b_1 | |||
|
47 | ? 2/in_b_2 | |||
|
48 | ? in_b | |||
|
49 | ? ../in_root | |||
|
50 | hg status in a/1: | |||
|
51 | ? a/1/in_a_1 | |||
|
52 | ? a/in_a | |||
|
53 | ? b/1/in_b_1 | |||
|
54 | ? b/2/in_b_2 | |||
|
55 | ? b/in_b | |||
|
56 | ? in_root | |||
|
57 | hg status . in a/1: | |||
|
58 | ? in_a_1 | |||
|
59 | hg status .. in a/1: | |||
|
60 | ? in_a_1 | |||
|
61 | ? ../in_a | |||
|
62 | hg status in b/1: | |||
|
63 | ? a/1/in_a_1 | |||
|
64 | ? a/in_a | |||
|
65 | ? b/1/in_b_1 | |||
|
66 | ? b/2/in_b_2 | |||
|
67 | ? b/in_b | |||
|
68 | ? in_root | |||
|
69 | hg status . in b/1: | |||
|
70 | ? in_b_1 | |||
|
71 | hg status .. in b/1: | |||
|
72 | ? in_b_1 | |||
|
73 | ? ../2/in_b_2 | |||
|
74 | ? ../in_b | |||
|
75 | hg status in b/2: | |||
|
76 | ? a/1/in_a_1 | |||
|
77 | ? a/in_a | |||
|
78 | ? b/1/in_b_1 | |||
|
79 | ? b/2/in_b_2 | |||
|
80 | ? b/in_b | |||
|
81 | ? in_root | |||
|
82 | hg status . in b/2: | |||
|
83 | ? in_b_2 | |||
|
84 | hg status .. in b/2: | |||
|
85 | ? ../1/in_b_1 | |||
|
86 | ? in_b_2 | |||
|
87 | ? ../in_b | |||
|
88 | adding .hgignore | |||
|
89 | adding deleted | |||
|
90 | adding modified | |||
|
91 | adding removed | |||
|
92 | hg status: | |||
|
93 | A added | |||
|
94 | R removed | |||
|
95 | ! deleted | |||
|
96 | ? unknown | |||
|
97 | hg status modified added removed deleted unknown never-existed ignored: | |||
|
98 | never-existed: No such file or directory | |||
|
99 | A added | |||
|
100 | R removed | |||
|
101 | ! deleted | |||
|
102 | ? ignored | |||
|
103 | ? unknown |
General Comments 0
You need to be logged in to leave comments.
Login now