stream-clone-test: add a verify call to the "clone while changing" case
authorPierre-Yves David <pierre-yves.david@octobus.net>
Wed, 28 Feb 2024 22:31:42 +0100
changeset 51480 d1d75797f58a
parent 51479 5bd31e68c7a3
child 51481 4456c15bde9e
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.
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 ..