git-repo/subcmds
Raman Tenneti feb28914bd superproject: Don't update the commit ids of projects if remote is different.
1) Skip setting the revision id (commit id) for the projects whose
   remote doesn't match superproject's remote.
2) exp-superproject/superproject_override.xml includes local_manfiest's
   projects. When we load this XML, don't reload projects from local.xml
   (otherwise we will get duplicate projects errors).

Tested the code with the following commands.

$ ./run_tests -v

+ Test with local.xml
  $ repo_dev init -u sso://android.git.corp.google.com/platform/manifest -b master --use-superproject --partial-clone --clone-filter=blob:limit=10M && mkdir -p .repo/local_manifests && (gcertstatus -quiet=true || gcert) && ln -s /google/src/head/depot/google3/wireless/android/build_tools/aosp/manifests/mirror-aosp-master-with-vendor/local.xml  .repo/local_manifests/local.xml

  $ repo_dev sync -c -j8

+ Test without local.xml
  $ repo_dev init -u sso://android.git.corp.google.com/platform/manifest -b master --partial-clone --clone-filter=blob:limit=10M --repo-rev=main --use-superproject
  $ repo_dev sync -c -j8

Bug: [google internal] b/186395810
Change-Id: I4e9d4ac2d94a9fc0cef0ccd787b6310758009e86
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/304882
Tested-by: Raman Tenneti <rtenneti@google.com>
Reviewed-by: Mike Frysinger <vapier@google.com>
2021-05-03 05:13:23 +00:00
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
branches.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
checkout.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
cherry_pick.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
diff.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +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 command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
gitc_delete.py drop pyversion & is_python3 checking 2021-01-06 18:53:58 +00:00
gitc_init.py init: merge subcmd & wrapper parsers 2021-04-09 01:04:32 +00:00
grep.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
help.py help/version: sprinkle bug report URL around 2021-04-26 21:43:43 +00:00
info.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
init.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
list.py list: fix help grammar 2021-04-14 15:25:53 +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 command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
rebase.py command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +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 command: make --verbose/--quiet available to all subcommands 2021-04-13 22:25:17 +00:00
start.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
status.py command: add a helper for the parallel execution boilerplate 2021-04-15 05:10:16 +00:00
sync.py superproject: Don't update the commit ids of projects if remote is different. 2021-05-03 05:13:23 +00:00
upload.py upload: search local projects in parallel 2021-05-02 00:06:32 +00:00
version.py help/version: sprinkle bug report URL around 2021-04-26 21:43:43 +00:00