Mercurial > hg
changeset 50466:fa78e8727a2d
revlog-split: expand the some test to cover the success case too
It seems useful to double check the case of a transaction successfully
committed before trying the one with transaction abort.
author | Pierre-Yves David <pierre-yves.david@octobus.net> |
---|---|
date | Mon, 15 May 2023 08:55:02 +0200 |
parents | 63dc24be635d |
children | 0dbab42adca5 |
files | tests/test-transaction-rollback-on-revlog-split.t |
diffstat | 1 files changed, 40 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/tests/test-transaction-rollback-on-revlog-split.t Mon May 15 08:54:47 2023 +0200 +++ b/tests/test-transaction-rollback-on-revlog-split.t Mon May 15 08:55:02 2023 +0200 @@ -114,6 +114,41 @@ $ cd .. +Test a succesful pull +===================== + +Make sure everything goes though as expect if we don't do any crash + + $ hg clone --quiet --rev 1 troffset-computation troffset-success + $ cd troffset-success + +Reference size: + $ f -s file + file: size=1024 + $ f -s .hg/store/data/file* + .hg/store/data/file.i: size=1174 + + $ hg pull ../troffset-computation + pulling from ../troffset-computation + searching for changes + adding changesets + adding manifests + adding file changes + added 2 changesets with 8 changes to 4 files + new changesets 16a630ece54e:8437c461d70a + (run 'hg update' to get a working copy) + + +The inline revlog has been replaced + + $ f -s .hg/store/data/file* + .hg/store/data/file.d: size=132139 + .hg/store/data/file.i: size=256 + + + $ hg verify -q + $ cd .. + Test a hard crash after the file was split but before the transaction was committed =================================================================================== @@ -406,6 +441,9 @@ $ cat $TESTTMP/reader.stderr $ cat $TESTTMP/reader.stdout 1 (no-eol) + + $ hg verify -q + $ cd .. pending hooks @@ -444,5 +482,7 @@ size=1024 $ cat stderr + $ hg verify -q + $ cd ..