Show More
@@ -109,13 +109,12 b' STREAM_FIXED_REQUIREMENTS = {' | |||||
109 | BOOKMARKS_IN_STORE_REQUIREMENT, |
|
109 | BOOKMARKS_IN_STORE_REQUIREMENT, | |
110 | CHANGELOGV2_REQUIREMENT, |
|
110 | CHANGELOGV2_REQUIREMENT, | |
111 | COPIESSDC_REQUIREMENT, |
|
111 | COPIESSDC_REQUIREMENT, | |
112 | DIRSTATE_V2_REQUIREMENT, |
|
|||
113 | GENERALDELTA_REQUIREMENT, |
|
112 | GENERALDELTA_REQUIREMENT, | |
|
113 | INTERNAL_PHASE_REQUIREMENT, | |||
114 | NODEMAP_REQUIREMENT, |
|
114 | NODEMAP_REQUIREMENT, | |
115 | REVLOG_COMPRESSION_ZSTD, |
|
115 | REVLOG_COMPRESSION_ZSTD, | |
116 | REVLOGV1_REQUIREMENT, |
|
116 | REVLOGV1_REQUIREMENT, | |
117 | REVLOGV2_REQUIREMENT, |
|
117 | REVLOGV2_REQUIREMENT, | |
118 | SHARESAFE_REQUIREMENT, |
|
|||
119 | SPARSEREVLOG_REQUIREMENT, |
|
118 | SPARSEREVLOG_REQUIREMENT, | |
120 | TREEMANIFEST_REQUIREMENT, |
|
119 | TREEMANIFEST_REQUIREMENT, | |
121 | } |
|
120 | } |
@@ -13,7 +13,7 b' This file contains tests case that deal ' | |||||
13 |
|
13 | |||
14 | Initialize repository |
|
14 | Initialize repository | |
15 |
|
15 | |||
16 | $ hg init server |
|
16 | $ hg init server --config format.use-share-safe=yes | |
17 | $ cd server |
|
17 | $ cd server | |
18 | $ sh $TESTDIR/testlib/stream_clone_setup.sh |
|
18 | $ sh $TESTDIR/testlib/stream_clone_setup.sh | |
19 | adding 00changelog-ab349180a0405010.nd |
|
19 | adding 00changelog-ab349180a0405010.nd | |
@@ -277,7 +277,65 b' The resulting clone should not use share' | |||||
277 | crosschecking files in changesets and manifests |
|
277 | crosschecking files in changesets and manifests | |
278 | checking files |
|
278 | checking files | |
279 | checked 3 changesets with 1088 changes to 1088 files |
|
279 | checked 3 changesets with 1088 changes to 1088 files | |
280 | $ hg debugrequires -R clone-from-share | grep share |
|
280 | $ hg debugrequires -R clone-from-share | egrep 'share$' | |
281 | [1] |
|
281 | [1] | |
282 |
|
282 | |||
283 | $ killdaemons.py |
|
283 | $ killdaemons.py | |
|
284 | ||||
|
285 | Test streaming from/to repository without a share-safe | |||
|
286 | ====================================================== | |||
|
287 | ||||
|
288 | $ rm hg-*.pid errors-*.txt | |||
|
289 | $ hg clone --pull --config format.use-share-safe=no server server-no-share-safe | |||
|
290 | requesting all changes | |||
|
291 | adding changesets | |||
|
292 | adding manifests | |||
|
293 | adding file changes | |||
|
294 | added 3 changesets with 1088 changes to 1088 files | |||
|
295 | new changesets 96ee1d7354c4:5223b5e3265f | |||
|
296 | updating to branch default | |||
|
297 | 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved | |||
|
298 | $ hg verify -R server-no-share-safe | |||
|
299 | checking changesets | |||
|
300 | checking manifests | |||
|
301 | crosschecking files in changesets and manifests | |||
|
302 | checking files | |||
|
303 | checked 3 changesets with 1088 changes to 1088 files | |||
|
304 | $ hg -R server serve -p $HGPORT -d --pid-file=hg-1.pid --error errors-1.txt | |||
|
305 | $ cat hg-1.pid > $DAEMON_PIDS | |||
|
306 | $ hg -R server-no-share-safe serve -p $HGPORT2 -d --pid-file=hg-2.pid --error errors-2.txt | |||
|
307 | $ cat hg-2.pid >> $DAEMON_PIDS | |||
|
308 | $ hg debugrequires -R server | grep share-safe | |||
|
309 | share-safe | |||
|
310 | $ hg debugrequires -R server-no-share-safe | grep share-safe | |||
|
311 | [1] | |||
|
312 | ||||
|
313 | share-safe → no-share-safe cloning | |||
|
314 | ||||
|
315 | $ hg clone --quiet --stream -U http://localhost:$HGPORT clone-remove-share-safe --config format.use-share-safe=no | |||
|
316 | $ cat errors-1.txt | |||
|
317 | $ hg -R clone-remove-share-safe verify | |||
|
318 | checking changesets | |||
|
319 | checking manifests | |||
|
320 | crosschecking files in changesets and manifests | |||
|
321 | checking files | |||
|
322 | checked 3 changesets with 1088 changes to 1088 files | |||
|
323 | $ hg debugrequires -R clone-remove-share-safe | grep share-safe | |||
|
324 | [1] | |||
|
325 | ||||
|
326 | ||||
|
327 | no-share-safe → share-safe cloning | |||
|
328 | ||||
|
329 | $ hg clone --quiet --stream -U http://localhost:$HGPORT2 clone-add-share-safe --config format.use-share-safe=yes | |||
|
330 | $ cat errors-2.txt | |||
|
331 | $ hg -R clone-add-share-safe verify | |||
|
332 | checking changesets | |||
|
333 | checking manifests | |||
|
334 | crosschecking files in changesets and manifests | |||
|
335 | checking files | |||
|
336 | checked 3 changesets with 1088 changes to 1088 files | |||
|
337 | $ hg debugrequires -R clone-add-share-safe | grep share-safe | |||
|
338 | share-safe | |||
|
339 | ||||
|
340 | ||||
|
341 | $ killdaemons.py |
General Comments 0
You need to be logged in to leave comments.
Login now