comparison tests/test-clone-stream.t @ 51481:4456c15bde9e

stream-clone-test: simplify bookmark clone The important things to test here is the number of file included (to catch that the bookmark file was sent). So we keep that part non glob'ed but glob the rest. The glob'ed numbers are very fragile and consume a lot of time for little value when adjusting formats, caches, and protocol.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 28 Feb 2024 22:39:10 +0100
parents d1d75797f58a
children 32631657e9af
comparison
equal deleted inserted replaced
51480:d1d75797f58a 51481:4456c15bde9e
417 $ cd .. 417 $ cd ..
418 418
419 Stream repository with bookmarks 419 Stream repository with bookmarks
420 -------------------------------- 420 --------------------------------
421 421
422 The bookmark file should be send over in the stream bundle.
423
422 add a bookmark 424 add a bookmark
423 425
424 $ hg -R server bookmark -r tip some-bookmark 426 $ hg -R server bookmark -r tip some-bookmark
425 427
426 clone it 428 clone it
427 429
428 #if stream-legacy
429 $ hg clone --stream http://localhost:$HGPORT with-bookmarks 430 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
430 streaming all changes 431 streaming all changes
431 1091 files to transfer, 102 KB of data (no-zstd !) 432 1091 files to transfer, * KB of data (glob) (stream-legacy !)
432 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !) 433 1097 files to transfer, * KB of data (glob) (stream-bundle2-v2 no-rust !)
433 1091 files to transfer, 98.8 KB of data (zstd !) 434 1099 files to transfer, * KB of data (glob) (stream-bundle2-v2 rust !)
434 transferred 98.8 KB in * seconds (* */sec) (glob) (zstd !) 435 1096 entries to transfer (stream-bundle2-v3 !)
435 searching for changes 436 transferred * KB in * seconds (* */sec) (glob)
436 no changes found 437 searching for changes (stream-legacy !)
437 updating to branch default 438 no changes found (stream-legacy !)
438 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved 439 updating to branch default
439 #endif 440 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
440 #if stream-bundle2-v2
441 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
442 streaming all changes
443 1097 files to transfer, 102 KB of data (no-zstd !)
444 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
445 1097 files to transfer, 99.1 KB of data (zstd no-rust !)
446 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
447 1099 files to transfer, 99.2 KB of data (zstd rust !)
448 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
449 updating to branch default
450 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
451 #endif
452 #if stream-bundle2-v3
453 $ hg clone --stream http://localhost:$HGPORT with-bookmarks
454 streaming all changes
455 1096 entries to transfer
456 transferred 102 KB in * seconds (* */sec) (glob) (no-zstd !)
457 transferred 99.1 KB in * seconds (* */sec) (glob) (zstd no-rust !)
458 transferred 99.2 KB in * seconds (* */sec) (glob) (zstd rust !)
459 updating to branch default
460 1088 files updated, 0 files merged, 0 files removed, 0 files unresolved
461 #endif
462 $ hg verify -R with-bookmarks -q 441 $ hg verify -R with-bookmarks -q
463 $ hg -R with-bookmarks bookmarks 442 $ hg -R with-bookmarks bookmarks
464 some-bookmark 2:5223b5e3265f 443 some-bookmark 2:5223b5e3265f
465 444
466 Stream repository with phases 445 Stream repository with phases