comparison tests/test-debugcommands.t @ 51400:e2dfa403452d

debug: add a debug::unbundle command that simulate the unbundle from a push The code have different behavior when the unbundle comes from a push, so we introduce a command that can simulate such unbundle. For our copy of mozilla-try-2023-03-22, this make the unbundle jump from 2.5 seconds (with `hg unbundle`) to 15 seconds (with `hg debug::unbundle`). That 15 seconds timings is consistent with the issue seen in production.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Fri, 23 Feb 2024 04:26:03 +0100
parents 3551f2a1c963
children f8bf1a8e9181
comparison
equal deleted inserted replaced
51398:e9304c39e075 51400:e2dfa403452d
656 .hg/cache/branch2-visible 656 .hg/cache/branch2-visible
657 .hg/cache/branch2-served.hidden 657 .hg/cache/branch2-served.hidden
658 .hg/cache/branch2-served 658 .hg/cache/branch2-served
659 .hg/cache/branch2-immutable 659 .hg/cache/branch2-immutable
660 .hg/cache/branch2-base 660 .hg/cache/branch2-base
661
662 Test debug::unbundle
663
664 $ hg bundle --exact --rev tip foo.hg
665 1 changesets found
666 $ hg debug::unbundle foo.hg
667 adding changesets
668 adding manifests
669 adding file changes
670 added 0 changesets with 0 changes to 1 files (no-pure !)
671 9 local changesets published (no-pure !)
672 3 local changesets published (pure !)
673 (run 'hg update' to get a working copy)
661 674
662 Test debugcolor 675 Test debugcolor
663 676
664 #if no-windows 677 #if no-windows
665 $ hg debugcolor --style --color always | grep -E 'mode|style|log\.' 678 $ hg debugcolor --style --color always | grep -E 'mode|style|log\.'