--- a/tests/test-clone-stream.t Mon May 29 01:38:34 2023 +0200
+++ b/tests/test-clone-stream.t Mon May 29 01:38:59 2023 +0200
@@ -683,40 +683,6 @@
$ mkdir changing
$ cd changing
-extension for delaying the server process so we reliably can modify the repo
-while cloning
-
- $ cat > stream_steps.py <<EOF
- > import os
- > import sys
- > from mercurial import (
- > encoding,
- > extensions,
- > streamclone,
- > testing,
- > )
- > WALKED_FILE_1 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_1']
- > WALKED_FILE_2 = encoding.environ[b'HG_TEST_STREAM_WALKED_FILE_2']
- >
- > def _test_sync_point_walk_1(orig, repo):
- > testing.write_file(WALKED_FILE_1)
- >
- > def _test_sync_point_walk_2(orig, repo):
- > assert repo._currentlock(repo._lockref) is None
- > testing.wait_file(WALKED_FILE_2)
- >
- > extensions.wrapfunction(
- > streamclone,
- > '_test_sync_point_walk_1',
- > _test_sync_point_walk_1
- > )
- > extensions.wrapfunction(
- > streamclone,
- > '_test_sync_point_walk_2',
- > _test_sync_point_walk_2
- > )
- > EOF
-
prepare repo with small and big file to cover both code paths in emitrevlogdata
$ hg init repo