git-repo/subcmds
Raman Tenneti ae86a46022 superproject: Skip updating of superproject when -l is used with sync.
Skip updating the superproject when -l is present and use the existing
superproject, if available (this would make sync -l work as it's
intended to do), and fall back to sync without superproject when not
(this would catch the case when superproject is enabled by automatic
rollout).

Tested:
$ repo sync -j 20 -n
NOTICE: --use-superproject is in beta; report any issues to the address described in `repo version`
/usr/local/google/home/rtenneti/work/android/src/aosp/.repo/exp-superproject/925043f706ba64db713e9bf3b55987e2-superproject.git: Initial setup for superproject completed.
Fetching: 100% (1032/1032), done in 41.184s
...

$ repo_dev sync -j 20 -l
prebuilts/asuite/: discarding 1 commits
prebuilts/runtime/: discarding 1 commits
...
repo sync has finished successfully.

+ With superproject-override.xml and test it.

  $ ls -l .repo/exp-superproject/
  total 176
  drwxr-xr-x 7 rtenneti primarygroup   4096 Jul 27 14:10 925043f706ba64db713e9bf3b55987e2-superproject.git
  -rw-r--r-- 1 rtenneti primarygroup 172742 Jul 27 14:10 superproject_override.xml
  rtenneti@rtenneti:~/work/android/src/aosp$ repo_dev sync -j 20 -l
  ...
  repo sync has finished successfully.

+ Rename the file superproject-override.xml and test it.
  $ ls -l .repo/exp-superproject/
  total 176
  drwxr-xr-x 7 rtenneti primarygroup   4096 Jul 27 14:10 925043f706ba64db713e9bf3b55987e2-superproject.git
  -rw-r--r-- 1 rtenneti primarygroup 172742 Jul 27 14:10 temp.xml

  $ repo_dev sync -j 20 -l
  Checking out:  1% (12/1031) platform/external/rust/crates/fallible-streaming-iteexternal/linux-kselftest/: discarding 1 commits
  prebuilts/remoteexecution-client/: discarding 1 commits
  Checking out: 51% (536/1031) platform/prebuilts/gcc/darwin-x86/aarch64/....
  ....
  Checking out: 100% (1031/1031), done in 5.478s
  repo sync has finished successfully.

Bug: [google internal] b/184368268
Change-Id: I3aba5872e4f7c299977b92c2a39847ef28698c5a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/312962
Reviewed-by: Mike Frysinger <vapier@google.com>
Reviewed-by: Jonathan Nieder <jrn@google.com>
Tested-by: Raman Tenneti <rtenneti@google.com>
2021-07-28 16:12:53 +00:00
..
__init__.py strip python2-only coding:utf-8 & print_function settings 2021-01-06 18:53:05 +00:00
abandon.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
branches.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
checkout.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
cherry_pick.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
diff.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
diffmanifests.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
download.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
forall.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
gitc_delete.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
gitc_init.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
grep.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
help.py repo: refactor help output handling 2021-07-28 05:38:34 +00:00
info.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
init.py superproject - More friendly user message when superproject failed. 2021-07-14 00:41:36 +00:00
list.py list: add a --relative-to option 2021-07-27 06:20:52 +00:00
manifest.py manifest: Support ignoring local manifests with 'repo manifest' 2021-07-20 04:56:12 +00:00
overview.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
prune.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
rebase.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
selfupdate.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
smartsync.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
stage.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
start.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
status.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
sync.py superproject: Skip updating of superproject when -l is used with sync. 2021-07-28 16:12:53 +00:00
upload.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00
version.py commands: document the "common" class attribute 2021-06-15 06:07:37 +00:00