git@vger.kernel.org list mirror (unofficial, one of many)
 help / color / mirror / code / Atom feed
39fd36fdf605d09e57c794e79ccc75b28a9ad258 blob 901 bytes (raw)

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
 
# Helpers for t208* tests

set_checkout_config () {
	if test $# -ne 2
	then
		BUG "set_checkout_config() requires two arguments"
	fi &&

	test_config_global checkout.workers $1 &&
	test_config_global checkout.thresholdForParallelism $2
}

# Run "${@:2}" and check that $1 checkout workers were used
test_checkout_workers () {
	if test $# -lt 2
	then
		BUG "too few arguments to test_checkout_workers()"
	fi &&

	expected_workers=$1 &&
	shift &&

	rm -f trace &&
	GIT_TRACE2="$(pwd)/trace" "$@" &&

	workers=$(grep "child_start\[..*\] git checkout--worker" trace | wc -l) &&
	test $workers -eq $expected_workers &&
	rm -f trace
}

# Verify that both the working tree and the index were created correctly
verify_checkout () {
	git -C "$1" diff-index --quiet HEAD -- &&
	git -C "$1" diff-index --quiet --cached HEAD -- &&
	git -C "$1" status --porcelain >"$1".status &&
	test_must_be_empty "$1".status
}
debug log:

solving 39fd36fdf6 ...
found 39fd36fdf6 in https://public-inbox.org/git/6379b8df6a59361dd44733e379880a11c6cd977c.1619104091.git.matheus.bernardino@usp.br/

applying [1/1] https://public-inbox.org/git/6379b8df6a59361dd44733e379880a11c6cd977c.1619104091.git.matheus.bernardino@usp.br/
diff --git a/t/lib-parallel-checkout.sh b/t/lib-parallel-checkout.sh
new file mode 100644
index 0000000000..39fd36fdf6

Checking patch t/lib-parallel-checkout.sh...
Applied patch t/lib-parallel-checkout.sh cleanly.

index at:
100644 39fd36fdf605d09e57c794e79ccc75b28a9ad258	t/lib-parallel-checkout.sh

Code repositories for project(s) associated with this inbox:

	https://80x24.org/mirrors/git.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).