changeset 51480:d1d75797f58a

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.
author Pierre-Yves David <pierre-yves.david@octobus.net>
date Wed, 28 Feb 2024 22:31:42 +0100
parents 5bd31e68c7a3
children 4456c15bde9e
files tests/test-clone-stream.t
diffstat 1 files changed, 5 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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 ..