comparison tests/test-clonebundles.t @ 27737:482eb357fe98

exchange: make clonebundleprefers non-experimental In preparation for making the feature enabled by default.
author Gregory Szorc <gregory.szorc@gmail.com>
date Fri, 08 Jan 2016 10:57:01 -0800
parents 7644d3aeedec
children a0e783d26e81
comparison
equal deleted inserted replaced
27736:7644d3aeedec 27737:482eb357fe98
375 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b 375 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b
376 > EOF 376 > EOF
377 377
378 Preferring an undefined attribute will take first entry 378 Preferring an undefined attribute will take first entry
379 379
380 $ hg --config experimental.clonebundleprefers=foo=bar clone -U http://localhost:$HGPORT prefer-foo 380 $ hg --config ui.clonebundleprefers=foo=bar clone -U http://localhost:$HGPORT prefer-foo
381 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg 381 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
382 adding changesets 382 adding changesets
383 adding manifests 383 adding manifests
384 adding file changes 384 adding file changes
385 added 2 changesets with 2 changes to 2 files 385 added 2 changesets with 2 changes to 2 files
387 searching for changes 387 searching for changes
388 no changes found 388 no changes found
389 389
390 Preferring bz2 type will download first entry of that type 390 Preferring bz2 type will download first entry of that type
391 391
392 $ hg --config experimental.clonebundleprefers=COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-bz 392 $ hg --config ui.clonebundleprefers=COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-bz
393 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg 393 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
394 adding changesets 394 adding changesets
395 adding manifests 395 adding manifests
396 adding file changes 396 adding file changes
397 added 2 changesets with 2 changes to 2 files 397 added 2 changesets with 2 changes to 2 files
399 searching for changes 399 searching for changes
400 no changes found 400 no changes found
401 401
402 Preferring multiple values of an option works 402 Preferring multiple values of an option works
403 403
404 $ hg --config experimental.clonebundleprefers=COMPRESSION=unknown,COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-multiple-bz 404 $ hg --config ui.clonebundleprefers=COMPRESSION=unknown,COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-multiple-bz
405 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg 405 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
406 adding changesets 406 adding changesets
407 adding manifests 407 adding manifests
408 adding file changes 408 adding file changes
409 added 2 changesets with 2 changes to 2 files 409 added 2 changesets with 2 changes to 2 files
411 searching for changes 411 searching for changes
412 no changes found 412 no changes found
413 413
414 Sorting multiple values should get us back to original first entry 414 Sorting multiple values should get us back to original first entry
415 415
416 $ hg --config experimental.clonebundleprefers=BUNDLESPEC=unknown,BUNDLESPEC=gzip-v2,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-multiple-gz 416 $ hg --config ui.clonebundleprefers=BUNDLESPEC=unknown,BUNDLESPEC=gzip-v2,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-multiple-gz
417 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg 417 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
418 adding changesets 418 adding changesets
419 adding manifests 419 adding manifests
420 adding file changes 420 adding file changes
421 added 2 changesets with 2 changes to 2 files 421 added 2 changesets with 2 changes to 2 files
423 searching for changes 423 searching for changes
424 no changes found 424 no changes found
425 425
426 Preferring multiple attributes has correct order 426 Preferring multiple attributes has correct order
427 427
428 $ hg --config experimental.clonebundleprefers=extra=b,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-separate-attributes 428 $ hg --config ui.clonebundleprefers=extra=b,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-separate-attributes
429 applying clone bundle from http://localhost:$HGPORT1/bz2-b.hg 429 applying clone bundle from http://localhost:$HGPORT1/bz2-b.hg
430 adding changesets 430 adding changesets
431 adding manifests 431 adding manifests
432 adding file changes 432 adding file changes
433 added 2 changesets with 2 changes to 2 files 433 added 2 changesets with 2 changes to 2 files
442 > http://localhost:$HGPORT1/bz2-a.hg BUNDLESPEC=bzip2-v2 442 > http://localhost:$HGPORT1/bz2-a.hg BUNDLESPEC=bzip2-v2
443 > http://localhost:$HGPORT1/gz-b.hg BUNDLESPEC=gzip-v2 extra=b 443 > http://localhost:$HGPORT1/gz-b.hg BUNDLESPEC=gzip-v2 extra=b
444 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b 444 > http://localhost:$HGPORT1/bz2-b.hg BUNDLESPEC=bzip2-v2 extra=b
445 > EOF 445 > EOF
446 446
447 $ hg --config experimental.clonebundleprefers=extra=b clone -U http://localhost:$HGPORT prefer-partially-defined-attribute 447 $ hg --config ui.clonebundleprefers=extra=b clone -U http://localhost:$HGPORT prefer-partially-defined-attribute
448 applying clone bundle from http://localhost:$HGPORT1/gz-b.hg 448 applying clone bundle from http://localhost:$HGPORT1/gz-b.hg
449 adding changesets 449 adding changesets
450 adding manifests 450 adding manifests
451 adding file changes 451 adding file changes
452 added 2 changesets with 2 changes to 2 files 452 added 2 changesets with 2 changes to 2 files