diff options
author | LaMont Jones <lamontjones@google.com> | 2022-04-11 22:50:11 +0000 |
---|---|---|
committer | LaMont Jones <lamontjones@google.com> | 2022-05-26 00:03:37 +0000 |
commit | bdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c (patch) | |
tree | ef0dbd149d7e5cd35c4d007a5052ba42bcc1c881 /subcmds/init.py | |
parent | 1d00a7e2ae64b6c08aff60c2e7ed5c2d89caf8d6 (diff) | |
download | git-repo-bdcba7dc36f1c8e6041681eb5b3b5229c93c7c5c.tar.gz |
sync: add multi-manifest supportv2.26
With this change, partial syncs (sync with a project list) are again
supported.
If the updated manifest includes new sub manifests, download them
inheriting options from the parent manifestProject.
Change-Id: Id952f85df2e26d34e38b251973be26434443ff56
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/334819
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: LaMont Jones <lamontjones@google.com>
Diffstat (limited to 'subcmds/init.py')
-rw-r--r-- | subcmds/init.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/subcmds/init.py b/subcmds/init.py index 6e3951c9..cced44d5 100644 --- a/subcmds/init.py +++ b/subcmds/init.py | |||
@@ -89,11 +89,10 @@ to update the working directory files. | |||
89 | def _Options(self, p, gitc_init=False): | 89 | def _Options(self, p, gitc_init=False): |
90 | Wrapper().InitParser(p, gitc_init=gitc_init) | 90 | Wrapper().InitParser(p, gitc_init=gitc_init) |
91 | m = p.add_option_group('Multi-manifest') | 91 | m = p.add_option_group('Multi-manifest') |
92 | m.add_option('--outer-manifest', action='store_true', | 92 | m.add_option('--outer-manifest', action='store_true', default=True, |
93 | help='operate starting at the outermost manifest') | 93 | help='operate starting at the outermost manifest') |
94 | m.add_option('--no-outer-manifest', dest='outer_manifest', | 94 | m.add_option('--no-outer-manifest', dest='outer_manifest', |
95 | action='store_false', default=None, | 95 | action='store_false', help='do not operate on outer manifests') |
96 | help='do not operate on outer manifests') | ||
97 | m.add_option('--this-manifest-only', action='store_true', default=None, | 96 | m.add_option('--this-manifest-only', action='store_true', default=None, |
98 | help='only operate on this (sub)manifest') | 97 | help='only operate on this (sub)manifest') |
99 | m.add_option('--no-this-manifest-only', '--all-manifests', | 98 | m.add_option('--no-this-manifest-only', '--all-manifests', |