Show More
@@ -1,79 +1,273 | |||
|
1 | #!/bin/sh | |
|
1 | ||
|
2 | $ hg init remote | |
|
3 | $ cd remote | |
|
4 | ||
|
5 | creating 'remote | |
|
6 | ||
|
7 | $ cat >>afile <<EOF | |
|
8 | > 0 | |
|
9 | > EOF | |
|
10 | $ hg add afile | |
|
11 | $ hg commit -m "0.0" | |
|
12 | $ cat >>afile <<EOF | |
|
13 | > 1 | |
|
14 | > EOF | |
|
15 | $ hg commit -m "0.1" | |
|
16 | $ cat >>afile <<EOF | |
|
17 | > 2 | |
|
18 | > EOF | |
|
19 | $ hg commit -m "0.2" | |
|
20 | $ cat >>afile <<EOF | |
|
21 | > 3 | |
|
22 | > EOF | |
|
23 | $ hg commit -m "0.3" | |
|
24 | $ hg update -C 0 | |
|
25 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
26 | $ cat >>afile <<EOF | |
|
27 | > 1 | |
|
28 | > EOF | |
|
29 | $ hg commit -m "1.1" | |
|
30 | created new head | |
|
31 | $ cat >>afile <<EOF | |
|
32 | > 2 | |
|
33 | > EOF | |
|
34 | $ hg commit -m "1.2" | |
|
35 | $ cat >fred <<EOF | |
|
36 | > a line | |
|
37 | > EOF | |
|
38 | $ cat >>afile <<EOF | |
|
39 | > 3 | |
|
40 | > EOF | |
|
41 | $ hg add fred | |
|
42 | $ hg commit -m "1.3" | |
|
43 | $ hg mv afile adifferentfile | |
|
44 | $ hg commit -m "1.3m" | |
|
45 | $ hg update -C 3 | |
|
46 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
47 | $ hg mv afile anotherfile | |
|
48 | $ hg commit -m "0.3m" | |
|
49 | $ hg debugindex .hg/store/data/afile.i | |
|
50 | rev offset length base linkrev nodeid p1 p2 | |
|
51 | 0 0 3 0 0 362fef284ce2 000000000000 000000000000 | |
|
52 | 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 | |
|
53 | 2 8 7 2 2 4c982badb186 125144f7e028 000000000000 | |
|
54 | 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000 | |
|
55 | $ hg debugindex .hg/store/data/adifferentfile.i | |
|
56 | rev offset length base linkrev nodeid p1 p2 | |
|
57 | 0 0 75 0 7 2565f3199a74 000000000000 000000000000 | |
|
58 | $ hg debugindex .hg/store/data/anotherfile.i | |
|
59 | rev offset length base linkrev nodeid p1 p2 | |
|
60 | 0 0 75 0 8 2565f3199a74 000000000000 000000000000 | |
|
61 | $ hg debugindex .hg/store/data/fred.i | |
|
62 | rev offset length base linkrev nodeid p1 p2 | |
|
63 | 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000 | |
|
64 | $ hg debugindex .hg/store/00manifest.i | |
|
65 | rev offset length base linkrev nodeid p1 p2 | |
|
66 | 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000 | |
|
67 | 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000 | |
|
68 | 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000 | |
|
69 | 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000 | |
|
70 | 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000 | |
|
71 | 5 250 68 3 7 09bb521d218d de68e904d169 000000000000 | |
|
72 | 6 318 54 6 8 1fde233dfb0f f54c32f13478 000000000000 | |
|
73 | $ hg verify | |
|
74 | checking changesets | |
|
75 | checking manifests | |
|
76 | crosschecking files in changesets and manifests | |
|
77 | checking files | |
|
78 | 4 files, 9 changesets, 7 total revisions | |
|
79 | ||
|
80 | Starting server | |
|
81 | ||
|
82 | $ hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid | |
|
83 | $ cd .. | |
|
84 | $ cat hg1.pid >> $DAEMON_PIDS | |
|
85 | ||
|
86 | clone remote via stream | |
|
2 | 87 | |
|
3 | hg init remote | |
|
4 | cd remote | |
|
5 | echo "# creating 'remote'" | |
|
6 | cat >>afile <<EOF | |
|
7 | 0 | |
|
8 | EOF | |
|
9 | hg add afile | |
|
10 | hg commit -m "0.0" | |
|
11 | cat >>afile <<EOF | |
|
12 | 1 | |
|
13 | EOF | |
|
14 | hg commit -m "0.1" | |
|
15 | cat >>afile <<EOF | |
|
16 | 2 | |
|
17 | EOF | |
|
18 | hg commit -m "0.2" | |
|
19 | cat >>afile <<EOF | |
|
20 | 3 | |
|
21 | EOF | |
|
22 | hg commit -m "0.3" | |
|
23 | hg update -C 0 | |
|
24 | cat >>afile <<EOF | |
|
25 | 1 | |
|
26 | EOF | |
|
27 | hg commit -m "1.1" | |
|
28 | cat >>afile <<EOF | |
|
29 | 2 | |
|
30 | EOF | |
|
31 | hg commit -m "1.2" | |
|
32 | cat >fred <<EOF | |
|
33 | a line | |
|
34 | EOF | |
|
35 | cat >>afile <<EOF | |
|
36 | 3 | |
|
37 | EOF | |
|
38 | hg add fred | |
|
39 | hg commit -m "1.3" | |
|
40 | hg mv afile adifferentfile | |
|
41 | hg commit -m "1.3m" | |
|
42 | hg update -C 3 | |
|
43 | hg mv afile anotherfile | |
|
44 | hg commit -m "0.3m" | |
|
45 | hg debugindex .hg/store/data/afile.i | |
|
46 | hg debugindex .hg/store/data/adifferentfile.i | |
|
47 | hg debugindex .hg/store/data/anotherfile.i | |
|
48 | hg debugindex .hg/store/data/fred.i | |
|
49 | hg debugindex .hg/store/00manifest.i | |
|
50 | hg verify | |
|
51 | echo "# Starting server" | |
|
52 | hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid | |
|
53 | cd .. | |
|
54 | cat hg1.pid >> $DAEMON_PIDS | |
|
55 | ||
|
56 | echo "# clone remote via stream" | |
|
57 | for i in 0 1 2 3 4 5 6 7 8; do | |
|
58 | hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" 2>&1 | |
|
59 | if cd test-"$i"; then | |
|
60 | hg verify | |
|
61 | cd .. | |
|
62 | fi | |
|
63 | done | |
|
64 | cd test-8 | |
|
65 | hg pull ../test-7 | |
|
66 | hg verify | |
|
67 | cd .. | |
|
68 | cd test-1 | |
|
69 | hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
70 | hg verify | |
|
71 | hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
72 | cd .. | |
|
73 | cd test-2 | |
|
74 | hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
75 | hg verify | |
|
76 | hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/," | |
|
77 | hg verify | |
|
78 | cd .. | |
|
79 | cat error.log | |
|
88 | $ for i in 0 1 2 3 4 5 6 7 8; do | |
|
89 | > hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" | |
|
90 | > if cd test-"$i"; then | |
|
91 | > hg verify | |
|
92 | > cd .. | |
|
93 | > fi | |
|
94 | > done | |
|
95 | requesting all changes | |
|
96 | adding changesets | |
|
97 | adding manifests | |
|
98 | adding file changes | |
|
99 | added 1 changesets with 1 changes to 1 files | |
|
100 | updating to branch default | |
|
101 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
102 | checking changesets | |
|
103 | checking manifests | |
|
104 | crosschecking files in changesets and manifests | |
|
105 | checking files | |
|
106 | 1 files, 1 changesets, 1 total revisions | |
|
107 | requesting all changes | |
|
108 | adding changesets | |
|
109 | adding manifests | |
|
110 | adding file changes | |
|
111 | added 2 changesets with 2 changes to 1 files | |
|
112 | updating to branch default | |
|
113 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
114 | checking changesets | |
|
115 | checking manifests | |
|
116 | crosschecking files in changesets and manifests | |
|
117 | checking files | |
|
118 | 1 files, 2 changesets, 2 total revisions | |
|
119 | requesting all changes | |
|
120 | adding changesets | |
|
121 | adding manifests | |
|
122 | adding file changes | |
|
123 | added 3 changesets with 3 changes to 1 files | |
|
124 | updating to branch default | |
|
125 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
126 | checking changesets | |
|
127 | checking manifests | |
|
128 | crosschecking files in changesets and manifests | |
|
129 | checking files | |
|
130 | 1 files, 3 changesets, 3 total revisions | |
|
131 | requesting all changes | |
|
132 | adding changesets | |
|
133 | adding manifests | |
|
134 | adding file changes | |
|
135 | added 4 changesets with 4 changes to 1 files | |
|
136 | updating to branch default | |
|
137 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
138 | checking changesets | |
|
139 | checking manifests | |
|
140 | crosschecking files in changesets and manifests | |
|
141 | checking files | |
|
142 | 1 files, 4 changesets, 4 total revisions | |
|
143 | requesting all changes | |
|
144 | adding changesets | |
|
145 | adding manifests | |
|
146 | adding file changes | |
|
147 | added 2 changesets with 2 changes to 1 files | |
|
148 | updating to branch default | |
|
149 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
150 | checking changesets | |
|
151 | checking manifests | |
|
152 | crosschecking files in changesets and manifests | |
|
153 | checking files | |
|
154 | 1 files, 2 changesets, 2 total revisions | |
|
155 | requesting all changes | |
|
156 | adding changesets | |
|
157 | adding manifests | |
|
158 | adding file changes | |
|
159 | added 3 changesets with 3 changes to 1 files | |
|
160 | updating to branch default | |
|
161 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
162 | checking changesets | |
|
163 | checking manifests | |
|
164 | crosschecking files in changesets and manifests | |
|
165 | checking files | |
|
166 | 1 files, 3 changesets, 3 total revisions | |
|
167 | requesting all changes | |
|
168 | adding changesets | |
|
169 | adding manifests | |
|
170 | adding file changes | |
|
171 | added 4 changesets with 5 changes to 2 files | |
|
172 | updating to branch default | |
|
173 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
174 | checking changesets | |
|
175 | checking manifests | |
|
176 | crosschecking files in changesets and manifests | |
|
177 | checking files | |
|
178 | 2 files, 4 changesets, 5 total revisions | |
|
179 | requesting all changes | |
|
180 | adding changesets | |
|
181 | adding manifests | |
|
182 | adding file changes | |
|
183 | added 5 changesets with 6 changes to 3 files | |
|
184 | updating to branch default | |
|
185 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
186 | checking changesets | |
|
187 | checking manifests | |
|
188 | crosschecking files in changesets and manifests | |
|
189 | checking files | |
|
190 | 3 files, 5 changesets, 6 total revisions | |
|
191 | requesting all changes | |
|
192 | adding changesets | |
|
193 | adding manifests | |
|
194 | adding file changes | |
|
195 | added 5 changesets with 5 changes to 2 files | |
|
196 | updating to branch default | |
|
197 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved | |
|
198 | checking changesets | |
|
199 | checking manifests | |
|
200 | crosschecking files in changesets and manifests | |
|
201 | checking files | |
|
202 | 2 files, 5 changesets, 5 total revisions | |
|
203 | $ cd test-8 | |
|
204 | $ hg pull ../test-7 | |
|
205 | pulling from ../test-7 | |
|
206 | searching for changes | |
|
207 | adding changesets | |
|
208 | adding manifests | |
|
209 | adding file changes | |
|
210 | added 4 changesets with 2 changes to 3 files (+1 heads) | |
|
211 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
212 | $ hg verify | |
|
213 | checking changesets | |
|
214 | checking manifests | |
|
215 | crosschecking files in changesets and manifests | |
|
216 | checking files | |
|
217 | 4 files, 9 changesets, 7 total revisions | |
|
218 | $ cd .. | |
|
219 | $ cd test-1 | |
|
220 | $ hg pull -r 4 http://localhost:$HGPORT/ | |
|
221 | pulling from http://localhost:*/ (glob) | |
|
222 | searching for changes | |
|
223 | adding changesets | |
|
224 | adding manifests | |
|
225 | adding file changes | |
|
226 | added 1 changesets with 0 changes to 1 files (+1 heads) | |
|
227 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
228 | $ hg verify | |
|
229 | checking changesets | |
|
230 | checking manifests | |
|
231 | crosschecking files in changesets and manifests | |
|
232 | checking files | |
|
233 | 1 files, 3 changesets, 2 total revisions | |
|
234 | $ hg pull http://localhost:$HGPORT/ | |
|
235 | pulling from http://localhost:*/ (glob) | |
|
236 | searching for changes | |
|
237 | adding changesets | |
|
238 | adding manifests | |
|
239 | adding file changes | |
|
240 | added 6 changesets with 5 changes to 4 files | |
|
241 | (run 'hg update' to get a working copy) | |
|
242 | $ cd .. | |
|
243 | $ cd test-2 | |
|
244 | $ hg pull -r 5 http://localhost:$HGPORT/ | |
|
245 | pulling from http://localhost:*/ (glob) | |
|
246 | searching for changes | |
|
247 | adding changesets | |
|
248 | adding manifests | |
|
249 | adding file changes | |
|
250 | added 2 changesets with 0 changes to 1 files (+1 heads) | |
|
251 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
252 | $ hg verify | |
|
253 | checking changesets | |
|
254 | checking manifests | |
|
255 | crosschecking files in changesets and manifests | |
|
256 | checking files | |
|
257 | 1 files, 5 changesets, 3 total revisions | |
|
258 | $ hg pull http://localhost:$HGPORT/ | |
|
259 | pulling from http://localhost:*/ (glob) | |
|
260 | searching for changes | |
|
261 | adding changesets | |
|
262 | adding manifests | |
|
263 | adding file changes | |
|
264 | added 4 changesets with 4 changes to 4 files | |
|
265 | (run 'hg update' to get a working copy) | |
|
266 | $ hg verify | |
|
267 | checking changesets | |
|
268 | checking manifests | |
|
269 | crosschecking files in changesets and manifests | |
|
270 | checking files | |
|
271 | 4 files, 9 changesets, 7 total revisions | |
|
272 | $ cd .. | |
|
273 | $ cat error.log |
|
1 | NO CONTENT: file was removed |
General Comments 0
You need to be logged in to leave comments.
Login now