##// END OF EJS Templates
tests: unify test-http-clone-r
Matt Mackall -
r12448:f5d3ff0a default
parent child Browse files
Show More
@@ -1,79 +1,273 b''
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
88 $ for i in 0 1 2 3 4 5 6 7 8; do
4 cd remote
89 > hg clone -r "$i" http://localhost:$HGPORT/ test-"$i"
5 echo "# creating 'remote'"
90 > if cd test-"$i"; then
6 cat >>afile <<EOF
91 > hg verify
7 0
92 > cd ..
8 EOF
93 > fi
9 hg add afile
94 > done
10 hg commit -m "0.0"
95 requesting all changes
11 cat >>afile <<EOF
96 adding changesets
12 1
97 adding manifests
13 EOF
98 adding file changes
14 hg commit -m "0.1"
99 added 1 changesets with 1 changes to 1 files
15 cat >>afile <<EOF
100 updating to branch default
16 2
101 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
17 EOF
102 checking changesets
18 hg commit -m "0.2"
103 checking manifests
19 cat >>afile <<EOF
104 crosschecking files in changesets and manifests
20 3
105 checking files
21 EOF
106 1 files, 1 changesets, 1 total revisions
22 hg commit -m "0.3"
107 requesting all changes
23 hg update -C 0
108 adding changesets
24 cat >>afile <<EOF
109 adding manifests
25 1
110 adding file changes
26 EOF
111 added 2 changesets with 2 changes to 1 files
27 hg commit -m "1.1"
112 updating to branch default
28 cat >>afile <<EOF
113 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
29 2
114 checking changesets
30 EOF
115 checking manifests
31 hg commit -m "1.2"
116 crosschecking files in changesets and manifests
32 cat >fred <<EOF
117 checking files
33 a line
118 1 files, 2 changesets, 2 total revisions
34 EOF
119 requesting all changes
35 cat >>afile <<EOF
120 adding changesets
36 3
121 adding manifests
37 EOF
122 adding file changes
38 hg add fred
123 added 3 changesets with 3 changes to 1 files
39 hg commit -m "1.3"
124 updating to branch default
40 hg mv afile adifferentfile
125 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
41 hg commit -m "1.3m"
126 checking changesets
42 hg update -C 3
127 checking manifests
43 hg mv afile anotherfile
128 crosschecking files in changesets and manifests
44 hg commit -m "0.3m"
129 checking files
45 hg debugindex .hg/store/data/afile.i
130 1 files, 3 changesets, 3 total revisions
46 hg debugindex .hg/store/data/adifferentfile.i
131 requesting all changes
47 hg debugindex .hg/store/data/anotherfile.i
132 adding changesets
48 hg debugindex .hg/store/data/fred.i
133 adding manifests
49 hg debugindex .hg/store/00manifest.i
134 adding file changes
50 hg verify
135 added 4 changesets with 4 changes to 1 files
51 echo "# Starting server"
136 updating to branch default
52 hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid
137 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
53 cd ..
138 checking changesets
54 cat hg1.pid >> $DAEMON_PIDS
139 checking manifests
55
140 crosschecking files in changesets and manifests
56 echo "# clone remote via stream"
141 checking files
57 for i in 0 1 2 3 4 5 6 7 8; do
142 1 files, 4 changesets, 4 total revisions
58 hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" 2>&1
143 requesting all changes
59 if cd test-"$i"; then
144 adding changesets
60 hg verify
145 adding manifests
61 cd ..
146 adding file changes
62 fi
147 added 2 changesets with 2 changes to 1 files
63 done
148 updating to branch default
64 cd test-8
149 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
65 hg pull ../test-7
150 checking changesets
66 hg verify
151 checking manifests
67 cd ..
152 crosschecking files in changesets and manifests
68 cd test-1
153 checking files
69 hg pull -r 4 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
154 1 files, 2 changesets, 2 total revisions
70 hg verify
155 requesting all changes
71 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
156 adding changesets
72 cd ..
157 adding manifests
73 cd test-2
158 adding file changes
74 hg pull -r 5 http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
159 added 3 changesets with 3 changes to 1 files
75 hg verify
160 updating to branch default
76 hg pull http://localhost:$HGPORT/ 2>&1 | sed -e "s,:$HGPORT/,:\$HGPORT/,"
161 1 files updated, 0 files merged, 0 files removed, 0 files unresolved
77 hg verify
162 checking changesets
78 cd ..
163 checking manifests
79 cat error.log
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
NO CONTENT: file was removed
General Comments 0
You need to be logged in to leave comments. Login now