Show More
|
1 | NO CONTENT: new file 100644, binary diff hidden |
@@ -0,0 +1,32 b'' | |||
|
1 | #!/bin/bash | |
|
2 | hg init remote | |
|
3 | cd remote | |
|
4 | ||
|
5 | echo "0" >> afile | |
|
6 | hg add afile | |
|
7 | hg commit -m "0.0" | |
|
8 | echo "1" >> afile | |
|
9 | hg commit -m "0.1" | |
|
10 | echo "2" >> afile | |
|
11 | hg commit -m "0.2" | |
|
12 | echo "3" >> afile | |
|
13 | hg commit -m "0.3" | |
|
14 | hg update -C 0 | |
|
15 | echo "1" >> afile | |
|
16 | hg commit -m "1.1" | |
|
17 | echo "2" >> afile | |
|
18 | hg commit -m "1.2" | |
|
19 | echo "a line" > fred | |
|
20 | echo "3" >> afile | |
|
21 | hg add fred | |
|
22 | hg commit -m "1.3" | |
|
23 | hg mv afile adifferentfile | |
|
24 | hg commit -m "1.3m" | |
|
25 | hg update -C 3 | |
|
26 | hg mv afile anotherfile | |
|
27 | hg commit -m "0.3m" | |
|
28 | ||
|
29 | hg bundle -a ../remote.hg | |
|
30 | ||
|
31 | cd .. | |
|
32 | rm -Rf remote |
@@ -1,376 +1,329 b'' | |||
|
1 | 1 | $ hg init test |
|
2 | 2 | $ cd test |
|
3 | $ echo "0" >> afile | |
|
4 | $ hg add afile | |
|
5 | $ hg commit -m "0.0" | |
|
6 | $ echo "1" >> afile | |
|
7 | $ hg commit -m "0.1" | |
|
8 | $ echo "2" >> afile | |
|
9 | $ hg commit -m "0.2" | |
|
10 | $ echo "3" >> afile | |
|
11 | $ hg commit -m "0.3" | |
|
12 | $ hg update -C 0 | |
|
3 | $ hg unbundle $TESTDIR/bundles/remote.hg | |
|
4 | adding changesets | |
|
5 | adding manifests | |
|
6 | adding file changes | |
|
7 | added 9 changesets with 7 changes to 4 files (+1 heads) | |
|
8 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
9 | $ hg up tip | |
|
13 | 10 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
14 | $ echo "1" >> afile | |
|
15 | $ hg commit -m "1.1" | |
|
16 | created new head | |
|
17 | $ echo "2" >> afile | |
|
18 | $ hg commit -m "1.2" | |
|
19 | $ echo "a line" > fred | |
|
20 | $ echo "3" >> afile | |
|
21 | $ hg add fred | |
|
22 | $ hg commit -m "1.3" | |
|
23 | $ hg mv afile adifferentfile | |
|
24 | $ hg commit -m "1.3m" | |
|
25 | $ hg update -C 3 | |
|
26 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
27 | $ hg mv afile anotherfile | |
|
28 | $ hg commit -m "0.3m" | |
|
29 | $ hg debugindex .hg/store/data/afile.i | |
|
30 | rev offset length base linkrev nodeid p1 p2 | |
|
31 | 0 0 3 0 0 362fef284ce2 000000000000 000000000000 | |
|
32 | 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 | |
|
33 | 2 8 7 2 2 4c982badb186 125144f7e028 000000000000 | |
|
34 | 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000 | |
|
35 | $ hg debugindex .hg/store/data/adifferentfile.i | |
|
36 | rev offset length base linkrev nodeid p1 p2 | |
|
37 | 0 0 75 0 7 2565f3199a74 000000000000 000000000000 | |
|
38 | $ hg debugindex .hg/store/data/anotherfile.i | |
|
39 | rev offset length base linkrev nodeid p1 p2 | |
|
40 | 0 0 75 0 8 2565f3199a74 000000000000 000000000000 | |
|
41 | $ hg debugindex .hg/store/data/fred.i | |
|
42 | rev offset length base linkrev nodeid p1 p2 | |
|
43 | 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000 | |
|
44 | $ hg debugindex .hg/store/00manifest.i | |
|
45 | rev offset length base linkrev nodeid p1 p2 | |
|
46 | 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000 | |
|
47 | 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000 | |
|
48 | 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000 | |
|
49 | 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000 | |
|
50 | 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000 | |
|
51 | 5 250 68 3 7 09bb521d218d de68e904d169 000000000000 | |
|
52 | 6 318 54 6 8 1fde233dfb0f f54c32f13478 000000000000 | |
|
53 | $ hg verify | |
|
54 | checking changesets | |
|
55 | checking manifests | |
|
56 | crosschecking files in changesets and manifests | |
|
57 | checking files | |
|
58 | 4 files, 9 changesets, 7 total revisions | |
|
59 | 11 | $ cd .. |
|
12 | ||
|
60 | 13 | $ for i in 0 1 2 3 4 5 6 7 8; do |
|
61 | 14 | > mkdir test-"$i" |
|
62 | 15 | > hg --cwd test-"$i" init |
|
63 | 16 | > hg -R test bundle -r "$i" test-"$i".hg test-"$i" |
|
64 | 17 | > cd test-"$i" |
|
65 | 18 | > hg unbundle ../test-"$i".hg |
|
66 | 19 | > hg verify |
|
67 | 20 | > hg tip -q |
|
68 | 21 | > cd .. |
|
69 | 22 | > done |
|
70 | 23 | searching for changes |
|
71 | 24 | 1 changesets found |
|
72 | 25 | adding changesets |
|
73 | 26 | adding manifests |
|
74 | 27 | adding file changes |
|
75 | 28 | added 1 changesets with 1 changes to 1 files |
|
76 | 29 | (run 'hg update' to get a working copy) |
|
77 | 30 | checking changesets |
|
78 | 31 | checking manifests |
|
79 | 32 | crosschecking files in changesets and manifests |
|
80 | 33 | checking files |
|
81 | 34 | 1 files, 1 changesets, 1 total revisions |
|
82 | 0:f9ee2f85a263 | |
|
35 | 0:bfaf4b5cbf01 | |
|
83 | 36 | searching for changes |
|
84 | 37 | 2 changesets found |
|
85 | 38 | adding changesets |
|
86 | 39 | adding manifests |
|
87 | 40 | adding file changes |
|
88 | 41 | added 2 changesets with 2 changes to 1 files |
|
89 | 42 | (run 'hg update' to get a working copy) |
|
90 | 43 | checking changesets |
|
91 | 44 | checking manifests |
|
92 | 45 | crosschecking files in changesets and manifests |
|
93 | 46 | checking files |
|
94 | 47 | 1 files, 2 changesets, 2 total revisions |
|
95 | 1:34c2bf6b0626 | |
|
48 | 1:21f32785131f | |
|
96 | 49 | searching for changes |
|
97 | 50 | 3 changesets found |
|
98 | 51 | adding changesets |
|
99 | 52 | adding manifests |
|
100 | 53 | adding file changes |
|
101 | 54 | added 3 changesets with 3 changes to 1 files |
|
102 | 55 | (run 'hg update' to get a working copy) |
|
103 | 56 | checking changesets |
|
104 | 57 | checking manifests |
|
105 | 58 | crosschecking files in changesets and manifests |
|
106 | 59 | checking files |
|
107 | 60 | 1 files, 3 changesets, 3 total revisions |
|
108 | 2:e38ba6f5b7e0 | |
|
61 | 2:4ce51a113780 | |
|
109 | 62 | searching for changes |
|
110 | 63 | 4 changesets found |
|
111 | 64 | adding changesets |
|
112 | 65 | adding manifests |
|
113 | 66 | adding file changes |
|
114 | 67 | added 4 changesets with 4 changes to 1 files |
|
115 | 68 | (run 'hg update' to get a working copy) |
|
116 | 69 | checking changesets |
|
117 | 70 | checking manifests |
|
118 | 71 | crosschecking files in changesets and manifests |
|
119 | 72 | checking files |
|
120 | 73 | 1 files, 4 changesets, 4 total revisions |
|
121 | 3:eebf5a27f8ca | |
|
74 | 3:93ee6ab32777 | |
|
122 | 75 | searching for changes |
|
123 | 76 | 2 changesets found |
|
124 | 77 | adding changesets |
|
125 | 78 | adding manifests |
|
126 | 79 | adding file changes |
|
127 | 80 | added 2 changesets with 2 changes to 1 files |
|
128 | 81 | (run 'hg update' to get a working copy) |
|
129 | 82 | checking changesets |
|
130 | 83 | checking manifests |
|
131 | 84 | crosschecking files in changesets and manifests |
|
132 | 85 | checking files |
|
133 | 86 | 1 files, 2 changesets, 2 total revisions |
|
134 | 1:095197eb4973 | |
|
87 | 1:c70afb1ee985 | |
|
135 | 88 | searching for changes |
|
136 | 89 | 3 changesets found |
|
137 | 90 | adding changesets |
|
138 | 91 | adding manifests |
|
139 | 92 | adding file changes |
|
140 | 93 | added 3 changesets with 3 changes to 1 files |
|
141 | 94 | (run 'hg update' to get a working copy) |
|
142 | 95 | checking changesets |
|
143 | 96 | checking manifests |
|
144 | 97 | crosschecking files in changesets and manifests |
|
145 | 98 | checking files |
|
146 | 99 | 1 files, 3 changesets, 3 total revisions |
|
147 | 2:1bb50a9436a7 | |
|
100 | 2:f03ae5a9b979 | |
|
148 | 101 | searching for changes |
|
149 | 102 | 4 changesets found |
|
150 | 103 | adding changesets |
|
151 | 104 | adding manifests |
|
152 | 105 | adding file changes |
|
153 | 106 | added 4 changesets with 5 changes to 2 files |
|
154 | 107 | (run 'hg update' to get a working copy) |
|
155 | 108 | checking changesets |
|
156 | 109 | checking manifests |
|
157 | 110 | crosschecking files in changesets and manifests |
|
158 | 111 | checking files |
|
159 | 112 | 2 files, 4 changesets, 5 total revisions |
|
160 | 3:7373c1169842 | |
|
113 | 3:095cb14b1b4d | |
|
161 | 114 | searching for changes |
|
162 | 115 | 5 changesets found |
|
163 | 116 | adding changesets |
|
164 | 117 | adding manifests |
|
165 | 118 | adding file changes |
|
166 | 119 | added 5 changesets with 6 changes to 3 files |
|
167 | 120 | (run 'hg update' to get a working copy) |
|
168 | 121 | checking changesets |
|
169 | 122 | checking manifests |
|
170 | 123 | crosschecking files in changesets and manifests |
|
171 | 124 | checking files |
|
172 | 125 | 3 files, 5 changesets, 6 total revisions |
|
173 | 4:a6a34bfa0076 | |
|
126 | 4:faa2e4234c7a | |
|
174 | 127 | searching for changes |
|
175 | 128 | 5 changesets found |
|
176 | 129 | adding changesets |
|
177 | 130 | adding manifests |
|
178 | 131 | adding file changes |
|
179 | 132 | added 5 changesets with 5 changes to 2 files |
|
180 | 133 | (run 'hg update' to get a working copy) |
|
181 | 134 | checking changesets |
|
182 | 135 | checking manifests |
|
183 | 136 | crosschecking files in changesets and manifests |
|
184 | 137 | checking files |
|
185 | 138 | 2 files, 5 changesets, 5 total revisions |
|
186 | 4:aa35859c02ea | |
|
139 | 4:916f1afdef90 | |
|
187 | 140 | $ cd test-8 |
|
188 | 141 | $ hg pull ../test-7 |
|
189 | 142 | pulling from ../test-7 |
|
190 | 143 | searching for changes |
|
191 | 144 | adding changesets |
|
192 | 145 | adding manifests |
|
193 | 146 | adding file changes |
|
194 | 147 | added 4 changesets with 2 changes to 3 files (+1 heads) |
|
195 | 148 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
196 | 149 | $ hg verify |
|
197 | 150 | checking changesets |
|
198 | 151 | checking manifests |
|
199 | 152 | crosschecking files in changesets and manifests |
|
200 | 153 | checking files |
|
201 | 154 | 4 files, 9 changesets, 7 total revisions |
|
202 | 155 | $ hg rollback |
|
203 | 156 | repository tip rolled back to revision 4 (undo pull) |
|
204 | 157 | working directory now based on revision -1 |
|
205 | 158 | $ cd .. |
|
206 | 159 | |
|
207 | 160 | should fail |
|
208 | 161 | |
|
209 | 162 | $ hg -R test bundle --base 2 -r tip test-bundle-branch1.hg test-3 |
|
210 | 163 | abort: --base is incompatible with specifying a destination |
|
211 | 164 | [255] |
|
212 | 165 | $ hg -R test bundle -r tip test-bundle-branch1.hg |
|
213 | 166 | abort: repository default-push not found! |
|
214 | 167 | [255] |
|
215 | 168 | |
|
216 | 169 | $ hg -R test bundle --base 2 -r tip test-bundle-branch1.hg |
|
217 | 170 | 2 changesets found |
|
218 | 171 | $ hg -R test bundle --base 2 -r 7 test-bundle-branch2.hg |
|
219 | 172 | 4 changesets found |
|
220 | 173 | $ hg -R test bundle --base 2 test-bundle-all.hg |
|
221 | 174 | 6 changesets found |
|
222 | 175 | $ hg -R test bundle --base 3 -r tip test-bundle-should-fail.hg |
|
223 | 176 | 1 changesets found |
|
224 | 177 | |
|
225 | 178 | empty bundle |
|
226 | 179 | |
|
227 | 180 | $ hg -R test bundle --base 7 --base 8 test-bundle-empty.hg |
|
228 | 181 | no changes found |
|
229 | 182 | [1] |
|
230 | 183 | |
|
231 | 184 | issue76 msg2163 |
|
232 | 185 | |
|
233 | 186 | $ hg -R test bundle --base 3 -r 3 -r 3 test-bundle-cset-3.hg |
|
234 | 187 | 1 changesets found |
|
235 | 188 | |
|
236 | 189 | Issue1910: 'hg bundle --base $head' does not exclude $head from |
|
237 | 190 | result |
|
238 | 191 | |
|
239 | 192 | $ hg -R test bundle --base 7 test-bundle-cset-7.hg |
|
240 | 193 | 4 changesets found |
|
241 | 194 | |
|
242 | 195 | $ hg clone test-2 test-9 |
|
243 | 196 | updating to branch default |
|
244 | 197 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
245 | 198 | $ cd test-9 |
|
246 | 199 | |
|
247 | 200 | revision 2 |
|
248 | 201 | |
|
249 | 202 | $ hg tip -q |
|
250 | 2:e38ba6f5b7e0 | |
|
203 | 2:4ce51a113780 | |
|
251 | 204 | $ hg unbundle ../test-bundle-should-fail.hg |
|
252 | 205 | adding changesets |
|
253 | 206 | transaction abort! |
|
254 | 207 | rollback completed |
|
255 |
abort: 00changelog.i@ |
|
|
208 | abort: 00changelog.i@93ee6ab32777: unknown parent! | |
|
256 | 209 | [255] |
|
257 | 210 | |
|
258 | 211 | revision 2 |
|
259 | 212 | |
|
260 | 213 | $ hg tip -q |
|
261 | 2:e38ba6f5b7e0 | |
|
214 | 2:4ce51a113780 | |
|
262 | 215 | $ hg unbundle ../test-bundle-all.hg |
|
263 | 216 | adding changesets |
|
264 | 217 | adding manifests |
|
265 | 218 | adding file changes |
|
266 | 219 | added 6 changesets with 4 changes to 4 files (+1 heads) |
|
267 | 220 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
268 | 221 | |
|
269 | 222 | revision 8 |
|
270 | 223 | |
|
271 | 224 | $ hg tip -q |
|
272 | 8:aa35859c02ea | |
|
225 | 8:916f1afdef90 | |
|
273 | 226 | $ hg verify |
|
274 | 227 | checking changesets |
|
275 | 228 | checking manifests |
|
276 | 229 | crosschecking files in changesets and manifests |
|
277 | 230 | checking files |
|
278 | 231 | 4 files, 9 changesets, 7 total revisions |
|
279 | 232 | $ hg rollback |
|
280 | 233 | repository tip rolled back to revision 2 (undo unbundle) |
|
281 | 234 | working directory now based on revision 2 |
|
282 | 235 | |
|
283 | 236 | revision 2 |
|
284 | 237 | |
|
285 | 238 | $ hg tip -q |
|
286 | 2:e38ba6f5b7e0 | |
|
239 | 2:4ce51a113780 | |
|
287 | 240 | $ hg unbundle ../test-bundle-branch1.hg |
|
288 | 241 | adding changesets |
|
289 | 242 | adding manifests |
|
290 | 243 | adding file changes |
|
291 | 244 | added 2 changesets with 2 changes to 2 files |
|
292 | 245 | (run 'hg update' to get a working copy) |
|
293 | 246 | |
|
294 | 247 | revision 4 |
|
295 | 248 | |
|
296 | 249 | $ hg tip -q |
|
297 | 4:aa35859c02ea | |
|
250 | 4:916f1afdef90 | |
|
298 | 251 | $ hg verify |
|
299 | 252 | checking changesets |
|
300 | 253 | checking manifests |
|
301 | 254 | crosschecking files in changesets and manifests |
|
302 | 255 | checking files |
|
303 | 256 | 2 files, 5 changesets, 5 total revisions |
|
304 | 257 | $ hg rollback |
|
305 | 258 | repository tip rolled back to revision 2 (undo unbundle) |
|
306 | 259 | working directory now based on revision 2 |
|
307 | 260 | $ hg unbundle ../test-bundle-branch2.hg |
|
308 | 261 | adding changesets |
|
309 | 262 | adding manifests |
|
310 | 263 | adding file changes |
|
311 | 264 | added 4 changesets with 3 changes to 3 files (+1 heads) |
|
312 | 265 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
313 | 266 | |
|
314 | 267 | revision 6 |
|
315 | 268 | |
|
316 | 269 | $ hg tip -q |
|
317 | 6:a6a34bfa0076 | |
|
270 | 6:faa2e4234c7a | |
|
318 | 271 | $ hg verify |
|
319 | 272 | checking changesets |
|
320 | 273 | checking manifests |
|
321 | 274 | crosschecking files in changesets and manifests |
|
322 | 275 | checking files |
|
323 | 276 | 3 files, 7 changesets, 6 total revisions |
|
324 | 277 | $ hg rollback |
|
325 | 278 | repository tip rolled back to revision 2 (undo unbundle) |
|
326 | 279 | working directory now based on revision 2 |
|
327 | 280 | $ hg unbundle ../test-bundle-cset-7.hg |
|
328 | 281 | adding changesets |
|
329 | 282 | adding manifests |
|
330 | 283 | adding file changes |
|
331 | 284 | added 2 changesets with 2 changes to 2 files |
|
332 | 285 | (run 'hg update' to get a working copy) |
|
333 | 286 | |
|
334 | 287 | revision 4 |
|
335 | 288 | |
|
336 | 289 | $ hg tip -q |
|
337 | 4:aa35859c02ea | |
|
290 | 4:916f1afdef90 | |
|
338 | 291 | $ hg verify |
|
339 | 292 | checking changesets |
|
340 | 293 | checking manifests |
|
341 | 294 | crosschecking files in changesets and manifests |
|
342 | 295 | checking files |
|
343 | 296 | 2 files, 5 changesets, 5 total revisions |
|
344 | 297 | |
|
345 | 298 | $ cd ../test |
|
346 | 299 | $ hg merge 7 |
|
347 | 300 | note: possible conflict - afile was renamed multiple times to: |
|
348 | 301 | anotherfile |
|
349 | 302 | adifferentfile |
|
350 | 303 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
351 | 304 | (branch merge, don't forget to commit) |
|
352 | 305 | $ hg ci -m merge |
|
353 | 306 | $ cd .. |
|
354 | 307 | $ hg -R test bundle --base 2 test-bundle-head.hg |
|
355 | 308 | 7 changesets found |
|
356 | 309 | $ hg clone test-2 test-10 |
|
357 | 310 | updating to branch default |
|
358 | 311 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
359 | 312 | $ cd test-10 |
|
360 | 313 | $ hg unbundle ../test-bundle-head.hg |
|
361 | 314 | adding changesets |
|
362 | 315 | adding manifests |
|
363 | 316 | adding file changes |
|
364 | 317 | added 7 changesets with 4 changes to 4 files |
|
365 | 318 | (run 'hg update' to get a working copy) |
|
366 | 319 | |
|
367 | 320 | revision 9 |
|
368 | 321 | |
|
369 | 322 | $ hg tip -q |
|
370 | 9:905597b0d5d4 | |
|
323 | 9:03fc0b0e347c | |
|
371 | 324 | $ hg verify |
|
372 | 325 | checking changesets |
|
373 | 326 | checking manifests |
|
374 | 327 | crosschecking files in changesets and manifests |
|
375 | 328 | checking files |
|
376 | 329 | 4 files, 10 changesets, 7 total revisions |
@@ -1,264 +1,198 b'' | |||
|
1 | creating 'remote | |
|
1 | 2 | |
|
2 | 3 | $ hg init remote |
|
3 | 4 | $ cd remote |
|
4 | ||
|
5 | creating 'remote | |
|
6 | ||
|
7 | $ cat >>afile <<EOF | |
|
8 | > 0 | |
|
9 | > EOF | |
|
10 |
$ hg |
|
|
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 | |
|
5 | $ hg unbundle $TESTDIR/bundles/remote.hg | |
|
6 | adding changesets | |
|
7 | adding manifests | |
|
8 | adding file changes | |
|
9 | added 9 changesets with 7 changes to 4 files (+1 heads) | |
|
10 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
11 | $ hg up tip | |
|
25 | 12 | 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 | 13 | |
|
80 | 14 | Starting server |
|
81 | 15 | |
|
82 | 16 | $ hg serve -p $HGPORT -E ../error.log -d --pid-file=../hg1.pid |
|
83 | 17 | $ cd .. |
|
84 | 18 | $ cat hg1.pid >> $DAEMON_PIDS |
|
85 | 19 | |
|
86 | 20 | clone remote via stream |
|
87 | 21 | |
|
88 | 22 | $ for i in 0 1 2 3 4 5 6 7 8; do |
|
89 | 23 | > hg clone -r "$i" http://localhost:$HGPORT/ test-"$i" |
|
90 | 24 | > if cd test-"$i"; then |
|
91 | 25 | > hg verify |
|
92 | 26 | > cd .. |
|
93 | 27 | > fi |
|
94 | 28 | > done |
|
95 | 29 | adding changesets |
|
96 | 30 | adding manifests |
|
97 | 31 | adding file changes |
|
98 | 32 | added 1 changesets with 1 changes to 1 files |
|
99 | 33 | updating to branch default |
|
100 | 34 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
101 | 35 | checking changesets |
|
102 | 36 | checking manifests |
|
103 | 37 | crosschecking files in changesets and manifests |
|
104 | 38 | checking files |
|
105 | 39 | 1 files, 1 changesets, 1 total revisions |
|
106 | 40 | adding changesets |
|
107 | 41 | adding manifests |
|
108 | 42 | adding file changes |
|
109 | 43 | added 2 changesets with 2 changes to 1 files |
|
110 | 44 | updating to branch default |
|
111 | 45 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
112 | 46 | checking changesets |
|
113 | 47 | checking manifests |
|
114 | 48 | crosschecking files in changesets and manifests |
|
115 | 49 | checking files |
|
116 | 50 | 1 files, 2 changesets, 2 total revisions |
|
117 | 51 | adding changesets |
|
118 | 52 | adding manifests |
|
119 | 53 | adding file changes |
|
120 | 54 | added 3 changesets with 3 changes to 1 files |
|
121 | 55 | updating to branch default |
|
122 | 56 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
123 | 57 | checking changesets |
|
124 | 58 | checking manifests |
|
125 | 59 | crosschecking files in changesets and manifests |
|
126 | 60 | checking files |
|
127 | 61 | 1 files, 3 changesets, 3 total revisions |
|
128 | 62 | adding changesets |
|
129 | 63 | adding manifests |
|
130 | 64 | adding file changes |
|
131 | 65 | added 4 changesets with 4 changes to 1 files |
|
132 | 66 | updating to branch default |
|
133 | 67 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
134 | 68 | checking changesets |
|
135 | 69 | checking manifests |
|
136 | 70 | crosschecking files in changesets and manifests |
|
137 | 71 | checking files |
|
138 | 72 | 1 files, 4 changesets, 4 total revisions |
|
139 | 73 | adding changesets |
|
140 | 74 | adding manifests |
|
141 | 75 | adding file changes |
|
142 | 76 | added 2 changesets with 2 changes to 1 files |
|
143 | 77 | updating to branch default |
|
144 | 78 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
145 | 79 | checking changesets |
|
146 | 80 | checking manifests |
|
147 | 81 | crosschecking files in changesets and manifests |
|
148 | 82 | checking files |
|
149 | 83 | 1 files, 2 changesets, 2 total revisions |
|
150 | 84 | adding changesets |
|
151 | 85 | adding manifests |
|
152 | 86 | adding file changes |
|
153 | 87 | added 3 changesets with 3 changes to 1 files |
|
154 | 88 | updating to branch default |
|
155 | 89 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
156 | 90 | checking changesets |
|
157 | 91 | checking manifests |
|
158 | 92 | crosschecking files in changesets and manifests |
|
159 | 93 | checking files |
|
160 | 94 | 1 files, 3 changesets, 3 total revisions |
|
161 | 95 | adding changesets |
|
162 | 96 | adding manifests |
|
163 | 97 | adding file changes |
|
164 | 98 | added 4 changesets with 5 changes to 2 files |
|
165 | 99 | updating to branch default |
|
166 | 100 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
167 | 101 | checking changesets |
|
168 | 102 | checking manifests |
|
169 | 103 | crosschecking files in changesets and manifests |
|
170 | 104 | checking files |
|
171 | 105 | 2 files, 4 changesets, 5 total revisions |
|
172 | 106 | adding changesets |
|
173 | 107 | adding manifests |
|
174 | 108 | adding file changes |
|
175 | 109 | added 5 changesets with 6 changes to 3 files |
|
176 | 110 | updating to branch default |
|
177 | 111 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
178 | 112 | checking changesets |
|
179 | 113 | checking manifests |
|
180 | 114 | crosschecking files in changesets and manifests |
|
181 | 115 | checking files |
|
182 | 116 | 3 files, 5 changesets, 6 total revisions |
|
183 | 117 | adding changesets |
|
184 | 118 | adding manifests |
|
185 | 119 | adding file changes |
|
186 | 120 | added 5 changesets with 5 changes to 2 files |
|
187 | 121 | updating to branch default |
|
188 | 122 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
189 | 123 | checking changesets |
|
190 | 124 | checking manifests |
|
191 | 125 | crosschecking files in changesets and manifests |
|
192 | 126 | checking files |
|
193 | 127 | 2 files, 5 changesets, 5 total revisions |
|
194 | 128 | $ cd test-8 |
|
195 | 129 | $ hg pull ../test-7 |
|
196 | 130 | pulling from ../test-7 |
|
197 | 131 | searching for changes |
|
198 | 132 | adding changesets |
|
199 | 133 | adding manifests |
|
200 | 134 | adding file changes |
|
201 | 135 | added 4 changesets with 2 changes to 3 files (+1 heads) |
|
202 | 136 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
203 | 137 | $ hg verify |
|
204 | 138 | checking changesets |
|
205 | 139 | checking manifests |
|
206 | 140 | crosschecking files in changesets and manifests |
|
207 | 141 | checking files |
|
208 | 142 | 4 files, 9 changesets, 7 total revisions |
|
209 | 143 | $ cd .. |
|
210 | 144 | $ cd test-1 |
|
211 | 145 | $ hg pull -r 4 http://localhost:$HGPORT/ |
|
212 | 146 | pulling from http://localhost:$HGPORT/ |
|
213 | 147 | searching for changes |
|
214 | 148 | adding changesets |
|
215 | 149 | adding manifests |
|
216 | 150 | adding file changes |
|
217 | 151 | added 1 changesets with 0 changes to 0 files (+1 heads) |
|
218 | 152 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
219 | 153 | $ hg verify |
|
220 | 154 | checking changesets |
|
221 | 155 | checking manifests |
|
222 | 156 | crosschecking files in changesets and manifests |
|
223 | 157 | checking files |
|
224 | 158 | 1 files, 3 changesets, 2 total revisions |
|
225 | 159 | $ hg pull http://localhost:$HGPORT/ |
|
226 | 160 | pulling from http://localhost:$HGPORT/ |
|
227 | 161 | searching for changes |
|
228 | 162 | adding changesets |
|
229 | 163 | adding manifests |
|
230 | 164 | adding file changes |
|
231 | 165 | added 6 changesets with 5 changes to 4 files |
|
232 | 166 | (run 'hg update' to get a working copy) |
|
233 | 167 | $ cd .. |
|
234 | 168 | $ cd test-2 |
|
235 | 169 | $ hg pull -r 5 http://localhost:$HGPORT/ |
|
236 | 170 | pulling from http://localhost:$HGPORT/ |
|
237 | 171 | searching for changes |
|
238 | 172 | adding changesets |
|
239 | 173 | adding manifests |
|
240 | 174 | adding file changes |
|
241 | 175 | added 2 changesets with 0 changes to 0 files (+1 heads) |
|
242 | 176 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
243 | 177 | $ hg verify |
|
244 | 178 | checking changesets |
|
245 | 179 | checking manifests |
|
246 | 180 | crosschecking files in changesets and manifests |
|
247 | 181 | checking files |
|
248 | 182 | 1 files, 5 changesets, 3 total revisions |
|
249 | 183 | $ hg pull http://localhost:$HGPORT/ |
|
250 | 184 | pulling from http://localhost:$HGPORT/ |
|
251 | 185 | searching for changes |
|
252 | 186 | adding changesets |
|
253 | 187 | adding manifests |
|
254 | 188 | adding file changes |
|
255 | 189 | added 4 changesets with 4 changes to 4 files |
|
256 | 190 | (run 'hg update' to get a working copy) |
|
257 | 191 | $ hg verify |
|
258 | 192 | checking changesets |
|
259 | 193 | checking manifests |
|
260 | 194 | crosschecking files in changesets and manifests |
|
261 | 195 | checking files |
|
262 | 196 | 4 files, 9 changesets, 7 total revisions |
|
263 | 197 | $ cd .. |
|
264 | 198 | $ cat error.log |
@@ -1,230 +1,148 b'' | |||
|
1 | 1 | $ hg init test |
|
2 | 2 | $ cd test |
|
3 | ||
|
4 | $ cat >>afile <<EOF | |
|
5 | > 0 | |
|
6 | > EOF | |
|
7 | $ hg add afile | |
|
8 | $ hg commit -m "0.0" | |
|
9 | ||
|
10 | $ cat >>afile <<EOF | |
|
11 | > 1 | |
|
12 | > EOF | |
|
13 | $ hg commit -m "0.1" | |
|
14 | ||
|
15 | $ cat >>afile <<EOF | |
|
16 | > 2 | |
|
17 | > EOF | |
|
18 | $ hg commit -m "0.2" | |
|
19 | ||
|
20 | $ cat >>afile <<EOF | |
|
21 | > 3 | |
|
22 | > EOF | |
|
23 | $ hg commit -m "0.3" | |
|
24 | ||
|
25 | $ hg update -C 0 | |
|
3 | $ hg unbundle $TESTDIR/bundles/remote.hg | |
|
4 | adding changesets | |
|
5 | adding manifests | |
|
6 | adding file changes | |
|
7 | added 9 changesets with 7 changes to 4 files (+1 heads) | |
|
8 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
9 | $ hg up tip | |
|
26 | 10 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
27 | ||
|
28 | $ cat >>afile <<EOF | |
|
29 | > 1 | |
|
30 | > EOF | |
|
31 | $ hg commit -m "1.1" | |
|
32 | created new head | |
|
33 | ||
|
34 | $ cat >>afile <<EOF | |
|
35 | > 2 | |
|
36 | > EOF | |
|
37 | $ hg commit -m "1.2" | |
|
38 | ||
|
39 | $ cat >fred <<EOF | |
|
40 | > a line | |
|
41 | > EOF | |
|
42 | $ cat >>afile <<EOF | |
|
43 | > 3 | |
|
44 | > EOF | |
|
45 | $ hg add fred | |
|
46 | $ hg commit -m "1.3" | |
|
47 | ||
|
48 | $ hg mv afile adifferentfile | |
|
49 | $ hg commit -m "1.3m" | |
|
50 | ||
|
51 | $ hg update -C 3 | |
|
52 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
53 | ||
|
54 | $ hg mv afile anotherfile | |
|
55 | $ hg commit -m "0.3m" | |
|
56 | ||
|
57 | $ hg debugindex .hg/store/data/afile.i | |
|
58 | rev offset length base linkrev nodeid p1 p2 | |
|
59 | 0 0 3 0 0 362fef284ce2 000000000000 000000000000 | |
|
60 | 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 | |
|
61 | 2 8 7 2 2 4c982badb186 125144f7e028 000000000000 | |
|
62 | 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000 | |
|
63 | ||
|
64 | $ hg debugindex .hg/store/data/adifferentfile.i | |
|
65 | rev offset length base linkrev nodeid p1 p2 | |
|
66 | 0 0 75 0 7 2565f3199a74 000000000000 000000000000 | |
|
67 | ||
|
68 | $ hg debugindex .hg/store/data/anotherfile.i | |
|
69 | rev offset length base linkrev nodeid p1 p2 | |
|
70 | 0 0 75 0 8 2565f3199a74 000000000000 000000000000 | |
|
71 | ||
|
72 | $ hg debugindex .hg/store/data/fred.i | |
|
73 | rev offset length base linkrev nodeid p1 p2 | |
|
74 | 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000 | |
|
75 | ||
|
76 | $ hg debugindex .hg/store/00manifest.i | |
|
77 | rev offset length base linkrev nodeid p1 p2 | |
|
78 | 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000 | |
|
79 | 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000 | |
|
80 | 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000 | |
|
81 | 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000 | |
|
82 | 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000 | |
|
83 | 5 250 68 3 7 09bb521d218d de68e904d169 000000000000 | |
|
84 | 6 318 54 6 8 1fde233dfb0f f54c32f13478 000000000000 | |
|
85 | ||
|
86 | $ hg verify | |
|
87 | checking changesets | |
|
88 | checking manifests | |
|
89 | crosschecking files in changesets and manifests | |
|
90 | checking files | |
|
91 | 4 files, 9 changesets, 7 total revisions | |
|
92 | ||
|
93 | 11 | $ cd .. |
|
94 | 12 | |
|
95 | 13 | $ for i in 0 1 2 3 4 5 6 7 8; do |
|
96 | 14 | > echo |
|
97 | 15 | > mkdir test-"$i" |
|
98 | 16 | > hg --cwd test-"$i" init |
|
99 | 17 | > hg -R test push -r "$i" test-"$i" |
|
100 | 18 | > cd test-"$i" |
|
101 | 19 | > hg verify |
|
102 | 20 | > cd .. |
|
103 | 21 | > done |
|
104 | 22 | |
|
105 | 23 | pushing to test-0 |
|
106 | 24 | searching for changes |
|
107 | 25 | adding changesets |
|
108 | 26 | adding manifests |
|
109 | 27 | adding file changes |
|
110 | 28 | added 1 changesets with 1 changes to 1 files |
|
111 | 29 | checking changesets |
|
112 | 30 | checking manifests |
|
113 | 31 | crosschecking files in changesets and manifests |
|
114 | 32 | checking files |
|
115 | 33 | 1 files, 1 changesets, 1 total revisions |
|
116 | 34 | |
|
117 | 35 | pushing to test-1 |
|
118 | 36 | searching for changes |
|
119 | 37 | adding changesets |
|
120 | 38 | adding manifests |
|
121 | 39 | adding file changes |
|
122 | 40 | added 2 changesets with 2 changes to 1 files |
|
123 | 41 | checking changesets |
|
124 | 42 | checking manifests |
|
125 | 43 | crosschecking files in changesets and manifests |
|
126 | 44 | checking files |
|
127 | 45 | 1 files, 2 changesets, 2 total revisions |
|
128 | 46 | |
|
129 | 47 | pushing to test-2 |
|
130 | 48 | searching for changes |
|
131 | 49 | adding changesets |
|
132 | 50 | adding manifests |
|
133 | 51 | adding file changes |
|
134 | 52 | added 3 changesets with 3 changes to 1 files |
|
135 | 53 | checking changesets |
|
136 | 54 | checking manifests |
|
137 | 55 | crosschecking files in changesets and manifests |
|
138 | 56 | checking files |
|
139 | 57 | 1 files, 3 changesets, 3 total revisions |
|
140 | 58 | |
|
141 | 59 | pushing to test-3 |
|
142 | 60 | searching for changes |
|
143 | 61 | adding changesets |
|
144 | 62 | adding manifests |
|
145 | 63 | adding file changes |
|
146 | 64 | added 4 changesets with 4 changes to 1 files |
|
147 | 65 | checking changesets |
|
148 | 66 | checking manifests |
|
149 | 67 | crosschecking files in changesets and manifests |
|
150 | 68 | checking files |
|
151 | 69 | 1 files, 4 changesets, 4 total revisions |
|
152 | 70 | |
|
153 | 71 | pushing to test-4 |
|
154 | 72 | searching for changes |
|
155 | 73 | adding changesets |
|
156 | 74 | adding manifests |
|
157 | 75 | adding file changes |
|
158 | 76 | added 2 changesets with 2 changes to 1 files |
|
159 | 77 | checking changesets |
|
160 | 78 | checking manifests |
|
161 | 79 | crosschecking files in changesets and manifests |
|
162 | 80 | checking files |
|
163 | 81 | 1 files, 2 changesets, 2 total revisions |
|
164 | 82 | |
|
165 | 83 | pushing to test-5 |
|
166 | 84 | searching for changes |
|
167 | 85 | adding changesets |
|
168 | 86 | adding manifests |
|
169 | 87 | adding file changes |
|
170 | 88 | added 3 changesets with 3 changes to 1 files |
|
171 | 89 | checking changesets |
|
172 | 90 | checking manifests |
|
173 | 91 | crosschecking files in changesets and manifests |
|
174 | 92 | checking files |
|
175 | 93 | 1 files, 3 changesets, 3 total revisions |
|
176 | 94 | |
|
177 | 95 | pushing to test-6 |
|
178 | 96 | searching for changes |
|
179 | 97 | adding changesets |
|
180 | 98 | adding manifests |
|
181 | 99 | adding file changes |
|
182 | 100 | added 4 changesets with 5 changes to 2 files |
|
183 | 101 | checking changesets |
|
184 | 102 | checking manifests |
|
185 | 103 | crosschecking files in changesets and manifests |
|
186 | 104 | checking files |
|
187 | 105 | 2 files, 4 changesets, 5 total revisions |
|
188 | 106 | |
|
189 | 107 | pushing to test-7 |
|
190 | 108 | searching for changes |
|
191 | 109 | adding changesets |
|
192 | 110 | adding manifests |
|
193 | 111 | adding file changes |
|
194 | 112 | added 5 changesets with 6 changes to 3 files |
|
195 | 113 | checking changesets |
|
196 | 114 | checking manifests |
|
197 | 115 | crosschecking files in changesets and manifests |
|
198 | 116 | checking files |
|
199 | 117 | 3 files, 5 changesets, 6 total revisions |
|
200 | 118 | |
|
201 | 119 | pushing to test-8 |
|
202 | 120 | searching for changes |
|
203 | 121 | adding changesets |
|
204 | 122 | adding manifests |
|
205 | 123 | adding file changes |
|
206 | 124 | added 5 changesets with 5 changes to 2 files |
|
207 | 125 | checking changesets |
|
208 | 126 | checking manifests |
|
209 | 127 | crosschecking files in changesets and manifests |
|
210 | 128 | checking files |
|
211 | 129 | 2 files, 5 changesets, 5 total revisions |
|
212 | 130 | |
|
213 | 131 | $ cd test-8 |
|
214 | 132 | |
|
215 | 133 | $ hg pull ../test-7 |
|
216 | 134 | pulling from ../test-7 |
|
217 | 135 | searching for changes |
|
218 | 136 | adding changesets |
|
219 | 137 | adding manifests |
|
220 | 138 | adding file changes |
|
221 | 139 | added 4 changesets with 2 changes to 3 files (+1 heads) |
|
222 | 140 | (run 'hg heads' to see heads, 'hg merge' to merge) |
|
223 | 141 | |
|
224 | 142 | $ hg verify |
|
225 | 143 | checking changesets |
|
226 | 144 | checking manifests |
|
227 | 145 | crosschecking files in changesets and manifests |
|
228 | 146 | checking files |
|
229 | 147 | 4 files, 9 changesets, 7 total revisions |
|
230 | 148 |
@@ -1,280 +1,216 b'' | |||
|
1 | 1 | This test tries to exercise the ssh functionality with a dummy script |
|
2 | 2 | |
|
3 | 3 | $ cat <<EOF > dummyssh |
|
4 | 4 | > import sys |
|
5 | 5 | > import os |
|
6 | 6 | > |
|
7 | 7 | > os.chdir(os.path.dirname(sys.argv[0])) |
|
8 | 8 | > if sys.argv[1] != "user@dummy": |
|
9 | 9 | > sys.exit(-1) |
|
10 | 10 | > |
|
11 | 11 | > if not os.path.exists("dummyssh"): |
|
12 | 12 | > sys.exit(-1) |
|
13 | 13 | > |
|
14 | 14 | > os.environ["SSH_CLIENT"] = "127.0.0.1 1 2" |
|
15 | 15 | > |
|
16 | 16 | > log = open("dummylog", "ab") |
|
17 | 17 | > log.write("Got arguments") |
|
18 | 18 | > for i, arg in enumerate(sys.argv[1:]): |
|
19 | 19 | > log.write(" %d:%s" % (i+1, arg)) |
|
20 | 20 | > log.write("\n") |
|
21 | 21 | > log.close() |
|
22 | 22 | > r = os.system(sys.argv[2]) |
|
23 | 23 | > sys.exit(bool(r)) |
|
24 | 24 | > EOF |
|
25 | $ hg init remote | |
|
26 | $ cd remote | |
|
27 | 25 | |
|
28 | 26 | creating 'remote |
|
29 | 27 | |
|
30 | $ cat >>afile <<EOF | |
|
31 | > 0 | |
|
32 | > EOF | |
|
33 | $ hg add afile | |
|
34 | $ hg commit -m "0.0" | |
|
35 | $ cat >>afile <<EOF | |
|
36 | > 1 | |
|
37 | > EOF | |
|
38 | $ hg commit -m "0.1" | |
|
39 | $ cat >>afile <<EOF | |
|
40 | > 2 | |
|
41 | > EOF | |
|
42 | $ hg commit -m "0.2" | |
|
43 | $ cat >>afile <<EOF | |
|
44 | > 3 | |
|
45 | > EOF | |
|
46 | $ hg commit -m "0.3" | |
|
47 | $ hg update -C 0 | |
|
28 | $ hg init remote | |
|
29 | $ cd remote | |
|
30 | $ hg unbundle $TESTDIR/bundles/remote.hg | |
|
31 | adding changesets | |
|
32 | adding manifests | |
|
33 | adding file changes | |
|
34 | added 9 changesets with 7 changes to 4 files (+1 heads) | |
|
35 | (run 'hg heads' to see heads, 'hg merge' to merge) | |
|
36 | $ hg up tip | |
|
48 | 37 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
49 | $ cat >>afile <<EOF | |
|
50 | > 1 | |
|
51 | > EOF | |
|
52 | $ hg commit -m "1.1" | |
|
53 | created new head | |
|
54 | $ cat >>afile <<EOF | |
|
55 | > 2 | |
|
56 | > EOF | |
|
57 | $ hg commit -m "1.2" | |
|
58 | $ cat >fred <<EOF | |
|
59 | > a line | |
|
60 | > EOF | |
|
61 | $ cat >>afile <<EOF | |
|
62 | > 3 | |
|
63 | > EOF | |
|
64 | $ hg add fred | |
|
65 | $ hg commit -m "1.3" | |
|
66 | $ hg mv afile adifferentfile | |
|
67 | $ hg commit -m "1.3m" | |
|
68 | $ hg update -C 3 | |
|
69 | 1 files updated, 0 files merged, 2 files removed, 0 files unresolved | |
|
70 | $ hg mv afile anotherfile | |
|
71 | $ hg commit -m "0.3m" | |
|
72 | $ hg debugindex .hg/store/data/afile.i | |
|
73 | rev offset length base linkrev nodeid p1 p2 | |
|
74 | 0 0 3 0 0 362fef284ce2 000000000000 000000000000 | |
|
75 | 1 3 5 1 1 125144f7e028 362fef284ce2 000000000000 | |
|
76 | 2 8 7 2 2 4c982badb186 125144f7e028 000000000000 | |
|
77 | 3 15 9 3 3 19b1fc555737 4c982badb186 000000000000 | |
|
78 | $ hg debugindex .hg/store/data/adifferentfile.i | |
|
79 | rev offset length base linkrev nodeid p1 p2 | |
|
80 | 0 0 75 0 7 2565f3199a74 000000000000 000000000000 | |
|
81 | $ hg debugindex .hg/store/data/anotherfile.i | |
|
82 | rev offset length base linkrev nodeid p1 p2 | |
|
83 | 0 0 75 0 8 2565f3199a74 000000000000 000000000000 | |
|
84 | $ hg debugindex .hg/store/data/fred.i | |
|
85 | rev offset length base linkrev nodeid p1 p2 | |
|
86 | 0 0 8 0 6 12ab3bcc5ea4 000000000000 000000000000 | |
|
87 | $ hg debugindex .hg/store/00manifest.i | |
|
88 | rev offset length base linkrev nodeid p1 p2 | |
|
89 | 0 0 48 0 0 43eadb1d2d06 000000000000 000000000000 | |
|
90 | 1 48 48 1 1 8b89697eba2c 43eadb1d2d06 000000000000 | |
|
91 | 2 96 48 2 2 626a32663c2f 8b89697eba2c 000000000000 | |
|
92 | 3 144 48 3 3 f54c32f13478 626a32663c2f 000000000000 | |
|
93 | 4 192 58 3 6 de68e904d169 626a32663c2f 000000000000 | |
|
94 | 5 250 68 3 7 09bb521d218d de68e904d169 000000000000 | |
|
95 | 6 318 54 6 8 1fde233dfb0f f54c32f13478 000000000000 | |
|
96 | $ hg verify | |
|
97 | checking changesets | |
|
98 | checking manifests | |
|
99 | crosschecking files in changesets and manifests | |
|
100 | checking files | |
|
101 | 4 files, 9 changesets, 7 total revisions | |
|
102 | 38 | $ cd .. |
|
103 | 39 | |
|
104 | 40 | clone remote via stream |
|
105 | 41 | |
|
106 | 42 | $ for i in 0 1 2 3 4 5 6 7 8; do |
|
107 | 43 | > hg clone -e "python ./dummyssh" --uncompressed -r "$i" ssh://user@dummy/remote test-"$i" |
|
108 | 44 | > if cd test-"$i"; then |
|
109 | 45 | > hg verify |
|
110 | 46 | > cd .. |
|
111 | 47 | > fi |
|
112 | 48 | > done |
|
113 | 49 | adding changesets |
|
114 | 50 | adding manifests |
|
115 | 51 | adding file changes |
|
116 | 52 | added 1 changesets with 1 changes to 1 files |
|
117 | 53 | updating to branch default |
|
118 | 54 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
119 | 55 | checking changesets |
|
120 | 56 | checking manifests |
|
121 | 57 | crosschecking files in changesets and manifests |
|
122 | 58 | checking files |
|
123 | 59 | 1 files, 1 changesets, 1 total revisions |
|
124 | 60 | adding changesets |
|
125 | 61 | adding manifests |
|
126 | 62 | adding file changes |
|
127 | 63 | added 2 changesets with 2 changes to 1 files |
|
128 | 64 | updating to branch default |
|
129 | 65 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
130 | 66 | checking changesets |
|
131 | 67 | checking manifests |
|
132 | 68 | crosschecking files in changesets and manifests |
|
133 | 69 | checking files |
|
134 | 70 | 1 files, 2 changesets, 2 total revisions |
|
135 | 71 | adding changesets |
|
136 | 72 | adding manifests |
|
137 | 73 | adding file changes |
|
138 | 74 | added 3 changesets with 3 changes to 1 files |
|
139 | 75 | updating to branch default |
|
140 | 76 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
141 | 77 | checking changesets |
|
142 | 78 | checking manifests |
|
143 | 79 | crosschecking files in changesets and manifests |
|
144 | 80 | checking files |
|
145 | 81 | 1 files, 3 changesets, 3 total revisions |
|
146 | 82 | adding changesets |
|
147 | 83 | adding manifests |
|
148 | 84 | adding file changes |
|
149 | 85 | added 4 changesets with 4 changes to 1 files |
|
150 | 86 | updating to branch default |
|
151 | 87 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
152 | 88 | checking changesets |
|
153 | 89 | checking manifests |
|
154 | 90 | crosschecking files in changesets and manifests |
|
155 | 91 | checking files |
|
156 | 92 | 1 files, 4 changesets, 4 total revisions |
|
157 | 93 | adding changesets |
|
158 | 94 | adding manifests |
|
159 | 95 | adding file changes |
|
160 | 96 | added 2 changesets with 2 changes to 1 files |
|
161 | 97 | updating to branch default |
|
162 | 98 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
163 | 99 | checking changesets |
|
164 | 100 | checking manifests |
|
165 | 101 | crosschecking files in changesets and manifests |
|
166 | 102 | checking files |
|
167 | 103 | 1 files, 2 changesets, 2 total revisions |
|
168 | 104 | adding changesets |
|
169 | 105 | adding manifests |
|
170 | 106 | adding file changes |
|
171 | 107 | added 3 changesets with 3 changes to 1 files |
|
172 | 108 | updating to branch default |
|
173 | 109 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
174 | 110 | checking changesets |
|
175 | 111 | checking manifests |
|
176 | 112 | crosschecking files in changesets and manifests |
|
177 | 113 | checking files |
|
178 | 114 | 1 files, 3 changesets, 3 total revisions |
|
179 | 115 | adding changesets |
|
180 | 116 | adding manifests |
|
181 | 117 | adding file changes |
|
182 | 118 | added 4 changesets with 5 changes to 2 files |
|
183 | 119 | updating to branch default |
|
184 | 120 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
185 | 121 | checking changesets |
|
186 | 122 | checking manifests |
|
187 | 123 | crosschecking files in changesets and manifests |
|
188 | 124 | checking files |
|
189 | 125 | 2 files, 4 changesets, 5 total revisions |
|
190 | 126 | adding changesets |
|
191 | 127 | adding manifests |
|
192 | 128 | adding file changes |
|
193 | 129 | added 5 changesets with 6 changes to 3 files |
|
194 | 130 | updating to branch default |
|
195 | 131 | 2 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
196 | 132 | checking changesets |
|
197 | 133 | checking manifests |
|
198 | 134 | crosschecking files in changesets and manifests |
|
199 | 135 | checking files |
|
200 | 136 | 3 files, 5 changesets, 6 total revisions |
|
201 | 137 | adding changesets |
|
202 | 138 | adding manifests |
|
203 | 139 | adding file changes |
|
204 | 140 | added 5 changesets with 5 changes to 2 files |
|
205 | 141 | updating to branch default |
|
206 | 142 | 1 files updated, 0 files merged, 0 files removed, 0 files unresolved |
|
207 | 143 | checking changesets |
|
208 | 144 | checking manifests |
|
209 | 145 | crosschecking files in changesets and manifests |
|
210 | 146 | checking files |
|
211 | 147 | 2 files, 5 changesets, 5 total revisions |
|
212 | 148 | $ cd test-8 |
|
213 | 149 | $ hg pull ../test-7 |
|
214 | 150 | pulling from ../test-7 |
|
215 | 151 | searching for changes |
|
216 | 152 | adding changesets |
|
217 | 153 | adding manifests |
|
218 | 154 | adding file changes |
|
219 | 155 | added 4 changesets with 2 changes to 3 files (+1 heads) |
|
220 | 156 |
(run ' |
|
221 | 157 | $ hg verify |
|
222 | 158 | checking changesets |
|
223 | 159 | checking manifests |
|
224 | 160 | crosschecking files in changesets and manifests |
|
225 | 161 | checking files |
|
226 | 162 | 4 files, 9 changesets, 7 total revisions |
|
227 | 163 | $ cd .. |
|
228 | 164 | $ cd test-1 |
|
229 | 165 | $ hg pull -e "python ../dummyssh" -r 4 ssh://user@dummy/remote |
|
230 | 166 | pulling from ssh://user@dummy/remote |
|
231 | 167 | searching for changes |
|
232 | 168 | adding changesets |
|
233 | 169 | adding manifests |
|
234 | 170 | adding file changes |
|
235 | 171 | added 1 changesets with 0 changes to 0 files (+1 heads) |
|
236 | 172 |
(run ' |
|
237 | 173 | $ hg verify |
|
238 | 174 | checking changesets |
|
239 | 175 | checking manifests |
|
240 | 176 | crosschecking files in changesets and manifests |
|
241 | 177 | checking files |
|
242 | 178 | 1 files, 3 changesets, 2 total revisions |
|
243 | 179 | $ hg pull -e "python ../dummyssh" ssh://user@dummy/remote |
|
244 | 180 | pulling from ssh://user@dummy/remote |
|
245 | 181 | searching for changes |
|
246 | 182 | adding changesets |
|
247 | 183 | adding manifests |
|
248 | 184 | adding file changes |
|
249 | 185 | added 6 changesets with 5 changes to 4 files |
|
250 | 186 |
(run ' |
|
251 | 187 | $ cd .. |
|
252 | 188 | $ cd test-2 |
|
253 | 189 | $ hg pull -e "python ../dummyssh" -r 5 ssh://user@dummy/remote |
|
254 | 190 | pulling from ssh://user@dummy/remote |
|
255 | 191 | searching for changes |
|
256 | 192 | adding changesets |
|
257 | 193 | adding manifests |
|
258 | 194 | adding file changes |
|
259 | 195 | added 2 changesets with 0 changes to 0 files (+1 heads) |
|
260 | 196 |
(run ' |
|
261 | 197 | $ hg verify |
|
262 | 198 | checking changesets |
|
263 | 199 | checking manifests |
|
264 | 200 | crosschecking files in changesets and manifests |
|
265 | 201 | checking files |
|
266 | 202 | 1 files, 5 changesets, 3 total revisions |
|
267 | 203 | $ hg pull -e "python ../dummyssh" ssh://user@dummy/remote |
|
268 | 204 | pulling from ssh://user@dummy/remote |
|
269 | 205 | searching for changes |
|
270 | 206 | adding changesets |
|
271 | 207 | adding manifests |
|
272 | 208 | adding file changes |
|
273 | 209 | added 4 changesets with 4 changes to 4 files |
|
274 | 210 |
(run ' |
|
275 | 211 | $ hg verify |
|
276 | 212 | checking changesets |
|
277 | 213 | checking manifests |
|
278 | 214 | crosschecking files in changesets and manifests |
|
279 | 215 | checking files |
|
280 | 216 | 4 files, 9 changesets, 7 total revisions |
General Comments 0
You need to be logged in to leave comments.
Login now