sync: clarify job flags when using interleaved

--jobs-network and --jobs-checkout are ignored with --interleaved.

Bug: 421935613
Change-Id: Ib69413993c4f970b385bd09318972716e5ac3324
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/485021
Tested-by: Gavin Mak <gavinmak@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Scott Lee <ddoman@google.com>
This commit is contained in:
Gavin Mak
2025-06-18 14:38:28 -07:00
committed by LUCI
parent 7b6ffed4ae
commit 6b8e9fc8db
3 changed files with 9 additions and 6 deletions

View File

@ -20,11 +20,12 @@ number of CPU cores)
.TP .TP
\fB\-\-jobs\-network\fR=\fI\,JOBS\/\fR \fB\-\-jobs\-network\fR=\fI\,JOBS\/\fR
number of network jobs to run in parallel (defaults to number of network jobs to run in parallel (defaults to
\fB\-\-jobs\fR or 1) \fB\-\-jobs\fR or 1). Ignored when \fB\-\-interleaved\fR is set
.TP .TP
\fB\-\-jobs\-checkout\fR=\fI\,JOBS\/\fR \fB\-\-jobs\-checkout\fR=\fI\,JOBS\/\fR
number of local checkout jobs to run in parallel number of local checkout jobs to run in parallel
(defaults to \fB\-\-jobs\fR or 8) (defaults to \fB\-\-jobs\fR or 8). Ignored when \fB\-\-interleaved\fR
is set
.TP .TP
\fB\-f\fR, \fB\-\-force\-broken\fR \fB\-f\fR, \fB\-\-force\-broken\fR
obsolete option (to be deleted in the future) obsolete option (to be deleted in the future)

View File

@ -20,11 +20,12 @@ number of CPU cores)
.TP .TP
\fB\-\-jobs\-network\fR=\fI\,JOBS\/\fR \fB\-\-jobs\-network\fR=\fI\,JOBS\/\fR
number of network jobs to run in parallel (defaults to number of network jobs to run in parallel (defaults to
\fB\-\-jobs\fR or 1) \fB\-\-jobs\fR or 1). Ignored when \fB\-\-interleaved\fR is set
.TP .TP
\fB\-\-jobs\-checkout\fR=\fI\,JOBS\/\fR \fB\-\-jobs\-checkout\fR=\fI\,JOBS\/\fR
number of local checkout jobs to run in parallel number of local checkout jobs to run in parallel
(defaults to \fB\-\-jobs\fR or 8) (defaults to \fB\-\-jobs\fR or 8). Ignored when \fB\-\-interleaved\fR
is set
.TP .TP
\fB\-f\fR, \fB\-\-force\-broken\fR \fB\-f\fR, \fB\-\-force\-broken\fR
obsolete option (to be deleted in the future) obsolete option (to be deleted in the future)

View File

@ -411,7 +411,7 @@ later is required to fix a server side protocol bug.
type=int, type=int,
metavar="JOBS", metavar="JOBS",
help="number of network jobs to run in parallel (defaults to " help="number of network jobs to run in parallel (defaults to "
"--jobs or 1)", "--jobs or 1). Ignored when --interleaved is set",
) )
p.add_option( p.add_option(
"--jobs-checkout", "--jobs-checkout",
@ -419,7 +419,8 @@ later is required to fix a server side protocol bug.
type=int, type=int,
metavar="JOBS", metavar="JOBS",
help="number of local checkout jobs to run in parallel (defaults " help="number of local checkout jobs to run in parallel (defaults "
f"to --jobs or {DEFAULT_LOCAL_JOBS})", f"to --jobs or {DEFAULT_LOCAL_JOBS}). Ignored when --interleaved "
"is set",
) )
p.add_option( p.add_option(