diff options
author | Gavin Mak <gavinmak@google.com> | 2025-07-21 12:24:41 -0700 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2025-07-21 14:51:36 -0700 |
commit | 25858c8b16264beca64bf22b91588fa6694b2b07 (patch) | |
tree | 9af597002daf661840546033c37b5a6fa169c515 | |
parent | 52bab0ba277c173259664cccc78b8ffed0c89841 (diff) | |
download | git-repo-2.57.tar.gz |
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>
-rw-r--r-- | subcmds/sync.py | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 13a322bc..b02fdd02 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -412,16 +412,18 @@ later is required to fix a server side protocol bug. | |||
412 | type=int, | 412 | type=int, |
413 | metavar="JOBS", | 413 | metavar="JOBS", |
414 | help="number of network jobs to run in parallel (defaults to " | 414 | help="number of network jobs to run in parallel (defaults to " |
415 | "--jobs or 1). Ignored when --interleaved is set", | 415 | "--jobs or 1). Ignored unless --no-interleaved is set", |
416 | ) | 416 | ) |
417 | p.add_option( | 417 | p.add_option( |
418 | "--jobs-checkout", | 418 | "--jobs-checkout", |
419 | default=None, | 419 | default=None, |
420 | type=int, | 420 | type=int, |
421 | metavar="JOBS", | 421 | metavar="JOBS", |
422 | help="number of local checkout jobs to run in parallel (defaults " | 422 | help=( |
423 | f"to --jobs or {DEFAULT_LOCAL_JOBS}). Ignored when --interleaved " | 423 | "number of local checkout jobs to run in parallel (defaults " |
424 | "is set", | 424 | f"to --jobs or {DEFAULT_LOCAL_JOBS}). Ignored unless " |
425 | "--no-interleaved is set" | ||
426 | ), | ||
425 | ) | 427 | ) |
426 | 428 | ||
427 | p.add_option( | 429 | p.add_option( |
@@ -480,7 +482,14 @@ later is required to fix a server side protocol bug. | |||
480 | p.add_option( | 482 | p.add_option( |
481 | "--interleaved", | 483 | "--interleaved", |
482 | action="store_true", | 484 | action="store_true", |
483 | help="fetch and checkout projects in parallel (experimental)", | 485 | default=True, |
486 | help="fetch and checkout projects in parallel (default)", | ||
487 | ) | ||
488 | p.add_option( | ||
489 | "--no-interleaved", | ||
490 | dest="interleaved", | ||
491 | action="store_false", | ||
492 | help="fetch and checkout projects in phases", | ||
484 | ) | 493 | ) |
485 | p.add_option( | 494 | p.add_option( |
486 | "-n", | 495 | "-n", |