Show More
@@ -1,42 +1,39 b'' | |||||
1 | #!/bin/sh |
|
1 | #!/bin/sh | |
2 |
|
2 | |||
3 | hg init repo1 |
|
3 | hg init repo1 | |
4 | cd repo1 |
|
4 | cd repo1 | |
5 | mkdir a b a/1 b/1 b/2 |
|
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 |
|
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:" |
|
7 | echo "hg status in repo root:" | |
8 | hg status |
|
8 | hg status | |
9 | echo "hg status . in repo root:" |
|
9 | echo "hg status . in repo root:" | |
10 | hg status . |
|
10 | hg status . | |
11 | for dir in a b a/1 b/1 b/2; do |
|
11 | for dir in a b a/1 b/1 b/2; do | |
12 | echo "hg status in $dir:" |
|
12 | echo "hg status in $dir:" | |
13 | hg status --cwd "$dir" |
|
13 | hg status --cwd "$dir" | |
14 | echo "hg status . in $dir:" |
|
14 | echo "hg status . in $dir:" | |
15 | hg status --cwd "$dir" . |
|
15 | hg status --cwd "$dir" . | |
16 | echo "hg status .. in $dir:" |
|
16 | echo "hg status .. in $dir:" | |
17 | hg status --cwd "$dir" .. |
|
17 | hg status --cwd "$dir" .. | |
18 | done |
|
18 | done | |
19 | cd .. |
|
19 | cd .. | |
20 |
|
20 | |||
21 | hg init repo2 |
|
21 | hg init repo2 | |
22 | cd repo2 |
|
22 | cd repo2 | |
23 | touch modified removed deleted ignored |
|
23 | touch modified removed deleted ignored | |
24 | echo "ignored" > .hgignore |
|
24 | echo "ignored" > .hgignore | |
25 | hg ci -A -m 'initial checkin' -d "1000000 0" |
|
25 | hg ci -A -m 'initial checkin' -d "1000000 0" | |
26 | sleep 1 # make sure mtime is changed |
|
26 | sleep 1 # make sure mtime is changed | |
27 | touch modified added unknown ignored |
|
27 | touch modified added unknown ignored | |
28 | hg add added |
|
28 | hg add added | |
29 | hg remove removed |
|
29 | hg remove removed | |
30 | rm deleted |
|
30 | rm deleted | |
31 | echo "hg status:" |
|
31 | echo "hg status:" | |
32 | hg status |
|
32 | hg status | |
33 | echo "hg status modified added removed deleted unknown never-existed ignored:" |
|
33 | echo "hg status modified added removed deleted unknown never-existed ignored:" | |
34 | hg status modified added removed deleted unknown never-existed ignored |
|
34 | hg status modified added removed deleted unknown never-existed ignored | |
35 | hg copy modified copied |
|
35 | hg copy modified copied | |
36 | echo "hg status -C:" |
|
36 | echo "hg status -C:" | |
37 | hg status -C |
|
37 | hg status -C | |
38 |
|
||||
39 | echo "hg status -t:" |
|
|||
40 | hg status -t |
|
|||
41 | echo "hg status -A:" |
|
38 | echo "hg status -A:" | |
42 | hg status -A |
|
39 | hg status -A |
@@ -1,166 +1,120 b'' | |||||
1 | hg status in repo root: |
|
1 | hg status in repo root: | |
2 | ? a/1/in_a_1 |
|
2 | ? a/1/in_a_1 | |
3 | ? a/in_a |
|
3 | ? a/in_a | |
4 | ? b/1/in_b_1 |
|
4 | ? b/1/in_b_1 | |
5 | ? b/2/in_b_2 |
|
5 | ? b/2/in_b_2 | |
6 | ? b/in_b |
|
6 | ? b/in_b | |
7 | ? in_root |
|
7 | ? in_root | |
8 | hg status . in repo root: |
|
8 | hg status . in repo root: | |
9 | ? a/1/in_a_1 |
|
9 | ? a/1/in_a_1 | |
10 | ? a/in_a |
|
10 | ? a/in_a | |
11 | ? b/1/in_b_1 |
|
11 | ? b/1/in_b_1 | |
12 | ? b/2/in_b_2 |
|
12 | ? b/2/in_b_2 | |
13 | ? b/in_b |
|
13 | ? b/in_b | |
14 | ? in_root |
|
14 | ? in_root | |
15 | hg status in a: |
|
15 | hg status in a: | |
16 | ? a/1/in_a_1 |
|
16 | ? a/1/in_a_1 | |
17 | ? a/in_a |
|
17 | ? a/in_a | |
18 | ? b/1/in_b_1 |
|
18 | ? b/1/in_b_1 | |
19 | ? b/2/in_b_2 |
|
19 | ? b/2/in_b_2 | |
20 | ? b/in_b |
|
20 | ? b/in_b | |
21 | ? in_root |
|
21 | ? in_root | |
22 | hg status . in a: |
|
22 | hg status . in a: | |
23 | ? 1/in_a_1 |
|
23 | ? 1/in_a_1 | |
24 | ? in_a |
|
24 | ? in_a | |
25 | hg status .. in a: |
|
25 | hg status .. in a: | |
26 | ? 1/in_a_1 |
|
26 | ? 1/in_a_1 | |
27 | ? in_a |
|
27 | ? in_a | |
28 | ? ../b/1/in_b_1 |
|
28 | ? ../b/1/in_b_1 | |
29 | ? ../b/2/in_b_2 |
|
29 | ? ../b/2/in_b_2 | |
30 | ? ../b/in_b |
|
30 | ? ../b/in_b | |
31 | ? ../in_root |
|
31 | ? ../in_root | |
32 | hg status in b: |
|
32 | hg status in b: | |
33 | ? a/1/in_a_1 |
|
33 | ? a/1/in_a_1 | |
34 | ? a/in_a |
|
34 | ? a/in_a | |
35 | ? b/1/in_b_1 |
|
35 | ? b/1/in_b_1 | |
36 | ? b/2/in_b_2 |
|
36 | ? b/2/in_b_2 | |
37 | ? b/in_b |
|
37 | ? b/in_b | |
38 | ? in_root |
|
38 | ? in_root | |
39 | hg status . in b: |
|
39 | hg status . in b: | |
40 | ? 1/in_b_1 |
|
40 | ? 1/in_b_1 | |
41 | ? 2/in_b_2 |
|
41 | ? 2/in_b_2 | |
42 | ? in_b |
|
42 | ? in_b | |
43 | hg status .. in b: |
|
43 | hg status .. in b: | |
44 | ? ../a/1/in_a_1 |
|
44 | ? ../a/1/in_a_1 | |
45 | ? ../a/in_a |
|
45 | ? ../a/in_a | |
46 | ? 1/in_b_1 |
|
46 | ? 1/in_b_1 | |
47 | ? 2/in_b_2 |
|
47 | ? 2/in_b_2 | |
48 | ? in_b |
|
48 | ? in_b | |
49 | ? ../in_root |
|
49 | ? ../in_root | |
50 | hg status in a/1: |
|
50 | hg status in a/1: | |
51 | ? a/1/in_a_1 |
|
51 | ? a/1/in_a_1 | |
52 | ? a/in_a |
|
52 | ? a/in_a | |
53 | ? b/1/in_b_1 |
|
53 | ? b/1/in_b_1 | |
54 | ? b/2/in_b_2 |
|
54 | ? b/2/in_b_2 | |
55 | ? b/in_b |
|
55 | ? b/in_b | |
56 | ? in_root |
|
56 | ? in_root | |
57 | hg status . in a/1: |
|
57 | hg status . in a/1: | |
58 | ? in_a_1 |
|
58 | ? in_a_1 | |
59 | hg status .. in a/1: |
|
59 | hg status .. in a/1: | |
60 | ? in_a_1 |
|
60 | ? in_a_1 | |
61 | ? ../in_a |
|
61 | ? ../in_a | |
62 | hg status in b/1: |
|
62 | hg status in b/1: | |
63 | ? a/1/in_a_1 |
|
63 | ? a/1/in_a_1 | |
64 | ? a/in_a |
|
64 | ? a/in_a | |
65 | ? b/1/in_b_1 |
|
65 | ? b/1/in_b_1 | |
66 | ? b/2/in_b_2 |
|
66 | ? b/2/in_b_2 | |
67 | ? b/in_b |
|
67 | ? b/in_b | |
68 | ? in_root |
|
68 | ? in_root | |
69 | hg status . in b/1: |
|
69 | hg status . in b/1: | |
70 | ? in_b_1 |
|
70 | ? in_b_1 | |
71 | hg status .. in b/1: |
|
71 | hg status .. in b/1: | |
72 | ? in_b_1 |
|
72 | ? in_b_1 | |
73 | ? ../2/in_b_2 |
|
73 | ? ../2/in_b_2 | |
74 | ? ../in_b |
|
74 | ? ../in_b | |
75 | hg status in b/2: |
|
75 | hg status in b/2: | |
76 | ? a/1/in_a_1 |
|
76 | ? a/1/in_a_1 | |
77 | ? a/in_a |
|
77 | ? a/in_a | |
78 | ? b/1/in_b_1 |
|
78 | ? b/1/in_b_1 | |
79 | ? b/2/in_b_2 |
|
79 | ? b/2/in_b_2 | |
80 | ? b/in_b |
|
80 | ? b/in_b | |
81 | ? in_root |
|
81 | ? in_root | |
82 | hg status . in b/2: |
|
82 | hg status . in b/2: | |
83 | ? in_b_2 |
|
83 | ? in_b_2 | |
84 | hg status .. in b/2: |
|
84 | hg status .. in b/2: | |
85 | ? ../1/in_b_1 |
|
85 | ? ../1/in_b_1 | |
86 | ? in_b_2 |
|
86 | ? in_b_2 | |
87 | ? ../in_b |
|
87 | ? ../in_b | |
88 | adding .hgignore |
|
88 | adding .hgignore | |
89 | adding deleted |
|
89 | adding deleted | |
90 | adding modified |
|
90 | adding modified | |
91 | adding removed |
|
91 | adding removed | |
92 | hg status: |
|
92 | hg status: | |
93 | A added |
|
93 | A added | |
94 | R removed |
|
94 | R removed | |
95 | ! deleted |
|
95 | ! deleted | |
96 | ? unknown |
|
96 | ? unknown | |
97 | hg status modified added removed deleted unknown never-existed ignored: |
|
97 | hg status modified added removed deleted unknown never-existed ignored: | |
98 | never-existed: No such file or directory |
|
98 | never-existed: No such file or directory | |
99 | A added |
|
99 | A added | |
100 | R removed |
|
100 | R removed | |
101 | ! deleted |
|
101 | ! deleted | |
102 | ? ignored |
|
102 | ? ignored | |
103 | ? unknown |
|
103 | ? unknown | |
104 | hg status -C: |
|
104 | hg status -C: | |
105 | A added |
|
105 | A added | |
106 | A copied |
|
106 | A copied | |
107 | modified |
|
107 | modified | |
108 | R removed |
|
108 | R removed | |
109 | ! deleted |
|
109 | ! deleted | |
110 | ? unknown |
|
110 | ? unknown | |
111 | hg status -t: |
|
|||
112 | hg status: option -t not recognized |
|
|||
113 | hg status [OPTION]... [FILE]... |
|
|||
114 |
|
||||
115 | show changed files in the working directory |
|
|||
116 |
|
||||
117 | Show status of files in the repository. If names are given, only |
|
|||
118 | files that match are shown. Files that are clean or ignored, are |
|
|||
119 | not listed unless -c (clean), -i (ignored) or -A is given. |
|
|||
120 |
|
||||
121 | NOTE: status may appear to disagree with diff if permissions have |
|
|||
122 | changed or a merge has occurred. The standard diff format does not |
|
|||
123 | report permission changes and diff only reports changes relative |
|
|||
124 | to one merge parent. |
|
|||
125 |
|
||||
126 | If one revision is given, it is used as the base revision. |
|
|||
127 | If two revisions are given, the difference between them is shown. |
|
|||
128 |
|
||||
129 | The codes used to show the status of files are: |
|
|||
130 | M = modified |
|
|||
131 | A = added |
|
|||
132 | R = removed |
|
|||
133 | C = clean |
|
|||
134 | ! = deleted, but still tracked |
|
|||
135 | ? = not tracked |
|
|||
136 | I = ignored (not shown by default) |
|
|||
137 | = the previous added file was copied from here |
|
|||
138 |
|
||||
139 | aliases: st |
|
|||
140 |
|
||||
141 | options: |
|
|||
142 |
|
||||
143 | -A --all show status of all files |
|
|||
144 | -m --modified show only modified files |
|
|||
145 | -a --added show only added files |
|
|||
146 | -r --removed show only removed files |
|
|||
147 | -d --deleted show only deleted (but tracked) files |
|
|||
148 | -c --clean show only files without changes |
|
|||
149 | -u --unknown show only unknown (not tracked) files |
|
|||
150 | -i --ignored show ignored files |
|
|||
151 | -n --no-status hide status prefix |
|
|||
152 | -C --copies show source of copied files |
|
|||
153 | -0 --print0 end filenames with NUL, for use with xargs |
|
|||
154 | --rev show difference from revision |
|
|||
155 | -I --include include names matching the given patterns |
|
|||
156 | -X --exclude exclude names matching the given patterns |
|
|||
157 | hg status -A: |
|
111 | hg status -A: | |
158 | A added |
|
112 | A added | |
159 | A copied |
|
113 | A copied | |
160 | modified |
|
114 | modified | |
161 | R removed |
|
115 | R removed | |
162 | ! deleted |
|
116 | ! deleted | |
163 | ? unknown |
|
117 | ? unknown | |
164 | I ignored |
|
118 | I ignored | |
165 | C .hgignore |
|
119 | C .hgignore | |
166 | C modified |
|
120 | C modified |
General Comments 0
You need to be logged in to leave comments.
Login now