# HG changeset patch # User Pierre-Yves David # Date 1709155902 -3600 # Node ID d1d75797f58a73534f0ca6cec9a8c85f779949c6 # Parent 5bd31e68c7a35aba84c1c313ce1e88463f118902 stream-clone-test: add a verify call to the "clone while changing" case It seems useful to very that the clone did not result in a corrupted copy. diff -r 5bd31e68c7a3 -r d1d75797f58a tests/test-clone-stream.t --- a/tests/test-clone-stream.t Fri Mar 08 10:59:51 2024 +0100 +++ b/tests/test-clone-stream.t Wed Feb 28 22:31:42 2024 +0100 @@ -373,11 +373,15 @@ $ hg -R server phase --draft 'secret()' Stream clone while repo is changing: +------------------------------------ + +We should send a repository in a valid state, ignoring the ongoing transaction. $ mkdir changing $ cd changing prepare repo with small and big file to cover both code paths in emitrevlogdata +(inlined revlog and non-inlined revlogs). $ hg init repo $ touch repo/f1 @@ -408,6 +412,7 @@ $ $RUNTESTDIR/testlib/wait-on-file 10 $HG_TEST_STREAM_WALKED_FILE_3 $ hg -R clone id 000000000000 + $ hg -R clone verify --quiet $ cat errors.log $ cd ..