cros_branch: Sync all groups by default
Cros branch expects non-default branches to be present regardless of the
tot annotation. By syncing all the branches cros branch will not fail
with kernel-next present.
There is nothing inherently wrong with creating a branch
from kernel-next/chromeos-next. Branching it will keep the ref around.
I think with this change we can remove the ToT annotation from
kernel-next.
BUG=b:144146564, chromium:992138, chromium:1017892
TEST=cros branch --push create --stabilize --descriptor test-all
--version 12656.0.0
Verified the sync was successful. I am not able to create branches
though.
Signed-off-by: Raul E Rangel <rrangel@chromium.org>
Change-Id: I08475837192867e26f55a22aeef61c1acb7f239d
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/chromite/+/1906528
Reviewed-by: Jason Clinton <jclinton@chromium.org>
Reviewed-by: Sean Abraham <seanabraham@chromium.org>
diff --git a/scripts/repo_sync_manifest.py b/scripts/repo_sync_manifest.py
index 0197ad5..2326978 100644
--- a/scripts/repo_sync_manifest.py
+++ b/scripts/repo_sync_manifest.py
@@ -55,6 +55,9 @@
'--manifest-file', type='path',
help='Sync to an existing local manifest file.')
+ manifest_group.add_argument(
+ '--groups', help='manifest groups to sync.')
+
manifest_url_ex = manifest_group.add_mutually_exclusive_group()
manifest_url_ex.add_argument(
'--external', action='store_true', default=False,
@@ -197,7 +200,8 @@
directory=options.repo_root,
branch=options.branch,
git_cache_dir=options.git_cache_dir,
- repo_url=options.repo_url)
+ repo_url=options.repo_url,
+ groups=options.groups)
if options.copy_repo:
repo.PreLoad(options.copy_repo)