Mercurial > hg
comparison tests/test-clonebundles.t @ 44282:877805928f85
exchange: check the `ui.clonebundleprefers` form while processing (issue6257)
Otherwise the clone command will emit a long stacktrace if there is no `=`
character.
Differential Revision: https://phab.mercurial-scm.org/D7969
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Wed, 22 Jan 2020 12:11:35 -0500 |
parents | be0d54cce8f4 |
children | 4dacd0cef146 |
comparison
equal
deleted
inserted
replaced
44281:f9dfb56ed6e8 | 44282:877805928f85 |
---|---|
453 finished applying clone bundle | 453 finished applying clone bundle |
454 searching for changes | 454 searching for changes |
455 no changes found | 455 no changes found |
456 2 local changesets published | 456 2 local changesets published |
457 | 457 |
458 Test a bad attribute list | |
459 | |
460 $ hg --config ui.clonebundleprefers=bad clone -U http://localhost:$HGPORT bad-input | |
461 abort: invalid ui.clonebundleprefers item: bad | |
462 (each comma separated item should be key=value pairs) | |
463 [255] | |
464 $ hg --config ui.clonebundleprefers=key=val,bad,key2=val2 clone \ | |
465 > -U http://localhost:$HGPORT bad-input | |
466 abort: invalid ui.clonebundleprefers item: bad | |
467 (each comma separated item should be key=value pairs) | |
468 [255] | |
469 | |
470 | |
458 Test interaction between clone bundles and --stream | 471 Test interaction between clone bundles and --stream |
459 | 472 |
460 A manifest with just a gzip bundle | 473 A manifest with just a gzip bundle |
461 | 474 |
462 $ cat > server/.hg/clonebundles.manifest << EOF | 475 $ cat > server/.hg/clonebundles.manifest << EOF |