mirror of
https://github.com/Dev-Wiki/git-repo.git
synced 2025-08-20 03:29:13 +08:00
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>
|
||
|---|---|---|
| .. | ||
| __init__.py | ||
| abandon.py | ||
| branches.py | ||
| checkout.py | ||
| cherry_pick.py | ||
| diff.py | ||
| diffmanifests.py | ||
| download.py | ||
| forall.py | ||
| gitc_delete.py | ||
| gitc_init.py | ||
| grep.py | ||
| help.py | ||
| info.py | ||
| init.py | ||
| list.py | ||
| manifest.py | ||
| overview.py | ||
| prune.py | ||
| rebase.py | ||
| selfupdate.py | ||
| smartsync.py | ||
| stage.py | ||
| start.py | ||
| status.py | ||
| sync.py | ||
| upload.py | ||
| version.py | ||