comparison tests/test-clonebundles.t @ 38249:1e9c357d3ddf

phase: clarify the message about movement on command changeset The current message is a bit generic. Since we only print it for phase movement on changeset already common before the pull, we add "local" to the message in and attempt to clarify what changeset the phase movement affected.
author Boris Feld <boris.feld@octobus.net>
date Tue, 05 Jun 2018 01:49:52 +0200
parents ead71b15efd5
children d0abd7949ea3
comparison
equal deleted inserted replaced
38248:99ab72b867b7 38249:1e9c357d3ddf
127 adding changesets 127 adding changesets
128 adding manifests 128 adding manifests
129 adding file changes 129 adding file changes
130 added 1 changesets with 1 changes to 1 files 130 added 1 changesets with 1 changes to 1 files
131 new changesets aaff8d2ffbbf 131 new changesets aaff8d2ffbbf
132 1 changesets became public 132 1 local changesets became public
133 133
134 Incremental pull doesn't fetch bundle 134 Incremental pull doesn't fetch bundle
135 135
136 $ hg clone -r 53245c60e682 -U http://localhost:$HGPORT partial-clone 136 $ hg clone -r 53245c60e682 -U http://localhost:$HGPORT partial-clone
137 adding changesets 137 adding changesets
200 adding file changes 200 adding file changes
201 added 2 changesets with 2 changes to 2 files 201 added 2 changesets with 2 changes to 2 files
202 finished applying clone bundle 202 finished applying clone bundle
203 searching for changes 203 searching for changes
204 no changes found 204 no changes found
205 2 changesets became public 205 2 local changesets became public
206 206
207 Feature works over SSH 207 Feature works over SSH
208 208
209 $ hg clone -U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone 209 $ hg clone -U -e "\"$PYTHON\" \"$TESTDIR/dummyssh\"" ssh://user@dummy/server ssh-full-clone
210 applying clone bundle from http://localhost:$HGPORT1/full.hg 210 applying clone bundle from http://localhost:$HGPORT1/full.hg
213 adding file changes 213 adding file changes
214 added 2 changesets with 2 changes to 2 files 214 added 2 changesets with 2 changes to 2 files
215 finished applying clone bundle 215 finished applying clone bundle
216 searching for changes 216 searching for changes
217 no changes found 217 no changes found
218 2 changesets became public 218 2 local changesets became public
219 219
220 Entry with unknown BUNDLESPEC is filtered and not used 220 Entry with unknown BUNDLESPEC is filtered and not used
221 221
222 $ cat > server/.hg/clonebundles.manifest << EOF 222 $ cat > server/.hg/clonebundles.manifest << EOF
223 > http://bad.entry1 BUNDLESPEC=UNKNOWN 223 > http://bad.entry1 BUNDLESPEC=UNKNOWN
233 adding file changes 233 adding file changes
234 added 2 changesets with 2 changes to 2 files 234 added 2 changesets with 2 changes to 2 files
235 finished applying clone bundle 235 finished applying clone bundle
236 searching for changes 236 searching for changes
237 no changes found 237 no changes found
238 2 changesets became public 238 2 local changesets became public
239 239
240 Automatic fallback when all entries are filtered 240 Automatic fallback when all entries are filtered
241 241
242 $ cat > server/.hg/clonebundles.manifest << EOF 242 $ cat > server/.hg/clonebundles.manifest << EOF
243 > http://bad.entry BUNDLESPEC=UNKNOWN 243 > http://bad.entry BUNDLESPEC=UNKNOWN
271 adding file changes 271 adding file changes
272 added 2 changesets with 2 changes to 2 files 272 added 2 changesets with 2 changes to 2 files
273 finished applying clone bundle 273 finished applying clone bundle
274 searching for changes 274 searching for changes
275 no changes found 275 no changes found
276 2 changesets became public 276 2 local changesets became public
277 #else 277 #else
278 Python <2.7.9 will filter SNI URLs 278 Python <2.7.9 will filter SNI URLs
279 279
280 $ hg clone -U http://localhost:$HGPORT sni-unsupported 280 $ hg clone -U http://localhost:$HGPORT sni-unsupported
281 applying clone bundle from http://localhost:$HGPORT1/full.hg 281 applying clone bundle from http://localhost:$HGPORT1/full.hg
376 adding file changes 376 adding file changes
377 added 2 changesets with 2 changes to 2 files 377 added 2 changesets with 2 changes to 2 files
378 finished applying clone bundle 378 finished applying clone bundle
379 searching for changes 379 searching for changes
380 no changes found 380 no changes found
381 2 changesets became public 381 2 local changesets became public
382 382
383 Preferring bz2 type will download first entry of that type 383 Preferring bz2 type will download first entry of that type
384 384
385 $ hg --config ui.clonebundleprefers=COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-bz 385 $ hg --config ui.clonebundleprefers=COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-bz
386 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg 386 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
389 adding file changes 389 adding file changes
390 added 2 changesets with 2 changes to 2 files 390 added 2 changesets with 2 changes to 2 files
391 finished applying clone bundle 391 finished applying clone bundle
392 searching for changes 392 searching for changes
393 no changes found 393 no changes found
394 2 changesets became public 394 2 local changesets became public
395 395
396 Preferring multiple values of an option works 396 Preferring multiple values of an option works
397 397
398 $ hg --config ui.clonebundleprefers=COMPRESSION=unknown,COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-multiple-bz 398 $ hg --config ui.clonebundleprefers=COMPRESSION=unknown,COMPRESSION=bzip2 clone -U http://localhost:$HGPORT prefer-multiple-bz
399 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg 399 applying clone bundle from http://localhost:$HGPORT1/bz2-a.hg
402 adding file changes 402 adding file changes
403 added 2 changesets with 2 changes to 2 files 403 added 2 changesets with 2 changes to 2 files
404 finished applying clone bundle 404 finished applying clone bundle
405 searching for changes 405 searching for changes
406 no changes found 406 no changes found
407 2 changesets became public 407 2 local changesets became public
408 408
409 Sorting multiple values should get us back to original first entry 409 Sorting multiple values should get us back to original first entry
410 410
411 $ hg --config ui.clonebundleprefers=BUNDLESPEC=unknown,BUNDLESPEC=gzip-v2,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-multiple-gz 411 $ hg --config ui.clonebundleprefers=BUNDLESPEC=unknown,BUNDLESPEC=gzip-v2,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-multiple-gz
412 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg 412 applying clone bundle from http://localhost:$HGPORT1/gz-a.hg
415 adding file changes 415 adding file changes
416 added 2 changesets with 2 changes to 2 files 416 added 2 changesets with 2 changes to 2 files
417 finished applying clone bundle 417 finished applying clone bundle
418 searching for changes 418 searching for changes
419 no changes found 419 no changes found
420 2 changesets became public 420 2 local changesets became public
421 421
422 Preferring multiple attributes has correct order 422 Preferring multiple attributes has correct order
423 423
424 $ hg --config ui.clonebundleprefers=extra=b,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-separate-attributes 424 $ hg --config ui.clonebundleprefers=extra=b,BUNDLESPEC=bzip2-v2 clone -U http://localhost:$HGPORT prefer-separate-attributes
425 applying clone bundle from http://localhost:$HGPORT1/bz2-b.hg 425 applying clone bundle from http://localhost:$HGPORT1/bz2-b.hg
428 adding file changes 428 adding file changes
429 added 2 changesets with 2 changes to 2 files 429 added 2 changesets with 2 changes to 2 files
430 finished applying clone bundle 430 finished applying clone bundle
431 searching for changes 431 searching for changes
432 no changes found 432 no changes found
433 2 changesets became public 433 2 local changesets became public
434 434
435 Test where attribute is missing from some entries 435 Test where attribute is missing from some entries
436 436
437 $ cat > server/.hg/clonebundles.manifest << EOF 437 $ cat > server/.hg/clonebundles.manifest << EOF
438 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2 438 > http://localhost:$HGPORT1/gz-a.hg BUNDLESPEC=gzip-v2
448 adding file changes 448 adding file changes
449 added 2 changesets with 2 changes to 2 files 449 added 2 changesets with 2 changes to 2 files
450 finished applying clone bundle 450 finished applying clone bundle
451 searching for changes 451 searching for changes
452 no changes found 452 no changes found
453 2 changesets became public 453 2 local changesets became public
454 454
455 Test interaction between clone bundles and --stream 455 Test interaction between clone bundles and --stream
456 456
457 A manifest with just a gzip bundle 457 A manifest with just a gzip bundle
458 458
554 adding file changes 554 adding file changes
555 added 2 changesets with 2 changes to 2 files 555 added 2 changesets with 2 changes to 2 files
556 finished applying clone bundle 556 finished applying clone bundle
557 searching for changes 557 searching for changes
558 no changes found 558 no changes found
559 2 changesets became public 559 2 local changesets became public