Mercurial > hg
changeset 49239:a94f28be2e6e
test-revlog: adds a new root revision with a delta against nullrev
We add a revision with null parent but that is not the first revision of the
revlog. It make it a different a case that is worthy of testing.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Fri, 27 May 2022 02:54:20 +0200 |
parents | 6aae0e1ecdbc |
children | cd51d4957b28 |
files | tests/bundles/test-revlog-diff-relative-to-nullrev.sh tests/bundles/test-revlog-diff-relative-to-nullrev.tar tests/test-revlog.t |
diffstat | 3 files changed, 6 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/bundles/test-revlog-diff-relative-to-nullrev.sh Fri May 27 02:52:46 2022 +0200 +++ b/tests/bundles/test-revlog-diff-relative-to-nullrev.sh Fri May 27 02:54:20 2022 +0200 @@ -29,6 +29,9 @@ ../../../hg commit -Am root-B echo ho > a ../../../hg commit -Am child-A +hg up null +echo ha > a +../../../hg commit -Am root-A ../../../hg debugdeltachain a rm -rf .hg/cache/ .hg/wcache/ cd ..
--- a/tests/test-revlog.t Fri May 27 02:52:46 2022 +0200 +++ b/tests/test-revlog.t Fri May 27 02:54:20 2022 +0200 @@ -79,8 +79,11 @@ rev p1 p2 chain# chainlen prev delta size rawsize chainsize ratio lindist extradist extraratio readsize largestblk rddensity srchunks 0 -1 -1 1 2 -1 p1 15 3 15 5.00000 15 0 0.00000 15 15 1.00000 1 1 0 -1 1 2 -1 p2 15 3 15 5.00000 30 15 1.00000 30 30 0.50000 1 + 2 -1 -1 1 2 -1 p1 15 3 15 5.00000 45 30 2.00000 45 45 0.33333 1 $ hg cat --config rhg.cat=true -r 0 a hi $ hg cat --config rhg.cat=true -r 1 a ho + $ hg cat --config rhg.cat=true -r 2 a + ha $ cd ..