git-repo/subcmds
Raman Tenneti 080877e413 superproject: pass groups to ToXml method.
Added the following methods to XmlManifest class.
+ GetDefaultGroupsStr() - return 'default,platform-' + platform.system().lower()
+ GetGroupsStr() - Same as gitc_utils.py's _manifest_groups func.

+ Replaced gitc_utils.py's_manifest_groups calls with GetGroupsStr.
+ Used the above methods to get groups in command.py::GetProjects
  and part of init.py.

TODO: clean up these funcs to take structured group data more instead
      of passing strings around everywhere that need parsing.

Tested the code with the following commands.

$ ./run_tests -v

Tested the sync code by using repo_dev alias and pointing to this CL
and verified prebuilts/fullsdk-linux directory has all the folders.

Tested repo init and repo sync with --use-superproject and without
--use-superproject argument.

$ repo_dev init -u sso://android.git.corp.google.com/platform/manifest -b androidx-main  --partial-clone --clone-filter=blob:limit=10M --repo-rev=main --use-superproject

$ repo_dev sync -c -j32

Bug: [google internal] b/181804931
Bug: https://crbug.com/gerrit/13707
Change-Id: Ia98585cbfa3a1449710655af55d56241794242b6
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/299422
Reviewed-by: Jonathan Nieder <jrn@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Raman Tenneti <rtenneti@google.com>
2021-03-11 01:24:52 +00:00
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py abandon/start: add --jobs support 2021-02-27 19:45:14 +00:00
branches.py status: improve parallel execution stability 2021-02-22 22:51:34 +00:00
checkout.py checkout: add --jobs support 2021-02-27 19:56:24 +00:00
cherry_pick.py git_command: rework stdin handling 2021-02-17 15:15:16 +00:00
diff.py diff: add --jobs support 2021-02-23 00:31:27 +00:00
diffmanifests.py diffmanifests/sync: simplify repodir lookup 2021-02-11 02:38:53 +00:00
download.py download: handle shared projects a bit better 2021-03-01 15:57:17 +00:00
forall.py forall: greatly speed up processing overhead 2021-03-01 15:58:06 +00:00
gitc_delete.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
gitc_init.py use simpler super() magic 2021-02-19 20:06:20 +00:00
grep.py grep: move nested func out to the class 2021-02-25 20:13:33 +00:00
help.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
info.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
init.py superproject: pass groups to ToXml method. 2021-03-11 01:24:52 +00:00
list.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
manifest.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
overview.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
prune.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
rebase.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
selfupdate.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
smartsync.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
stage.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
start.py abandon/start: add --jobs support 2021-02-27 19:45:14 +00:00
status.py status: improve parallel execution stability 2021-02-22 22:51:34 +00:00
sync.py superproject: Display status messages during repo init/sync. 2021-03-04 20:07:52 +00:00
upload.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
version.py version: add remote tracking information 2021-01-08 20:41:27 +00:00