sync: Default to interleaved mode
The previous default, "phased" sync (separate network and checkout phases), can now be selected with `--no-interleaved`. Bug: 421935613 Bug: 432082000 Change-Id: Ia8624daa609a28ea2f87f8ea4b42138d8b3e9269 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/489681 Reviewed-by: Scott Lee <ddoman@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
This commit is contained in:
parent
52bab0ba27
commit
25858c8b16
1 changed files with 14 additions and 5 deletions
|
@ -412,16 +412,18 @@ 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). Ignored when --interleaved is set",
|
"--jobs or 1). Ignored unless --no-interleaved is set",
|
||||||
)
|
)
|
||||||
p.add_option(
|
p.add_option(
|
||||||
"--jobs-checkout",
|
"--jobs-checkout",
|
||||||
default=None,
|
default=None,
|
||||||
type=int,
|
type=int,
|
||||||
metavar="JOBS",
|
metavar="JOBS",
|
||||||
help="number of local checkout jobs to run in parallel (defaults "
|
help=(
|
||||||
f"to --jobs or {DEFAULT_LOCAL_JOBS}). Ignored when --interleaved "
|
"number of local checkout jobs to run in parallel (defaults "
|
||||||
"is set",
|
f"to --jobs or {DEFAULT_LOCAL_JOBS}). Ignored unless "
|
||||||
|
"--no-interleaved is set"
|
||||||
|
),
|
||||||
)
|
)
|
||||||
|
|
||||||
p.add_option(
|
p.add_option(
|
||||||
|
@ -480,7 +482,14 @@ later is required to fix a server side protocol bug.
|
||||||
p.add_option(
|
p.add_option(
|
||||||
"--interleaved",
|
"--interleaved",
|
||||||
action="store_true",
|
action="store_true",
|
||||||
help="fetch and checkout projects in parallel (experimental)",
|
default=True,
|
||||||
|
help="fetch and checkout projects in parallel (default)",
|
||||||
|
)
|
||||||
|
p.add_option(
|
||||||
|
"--no-interleaved",
|
||||||
|
dest="interleaved",
|
||||||
|
action="store_false",
|
||||||
|
help="fetch and checkout projects in phases",
|
||||||
)
|
)
|
||||||
p.add_option(
|
p.add_option(
|
||||||
"-n",
|
"-n",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue