diff options
author | Raman Tenneti <rtenneti@google.com> | 2021-03-04 10:29:40 -0800 |
---|---|---|
committer | Raman Tenneti <rtenneti@google.com> | 2021-03-04 20:07:52 +0000 |
commit | ef99ec07b4687cef0129057b81c0c1ebd21bb640 (patch) | |
tree | 86a2e87156f795e631097cc922c9757dbaf1cf7f /subcmds/sync.py | |
parent | 934cb0a849d0bf22e2ae64cd6c3e93334d05e3ab (diff) | |
download | git-repo-ef99ec07b4687cef0129057b81c0c1ebd21bb640.tar.gz |
superproject: Display status messages during repo init/sync.v2.13.3
Superproject objects accept the optional argument “quiet”.
The following progress messages are displayed if quiet is false.
Displayed the following message whenever we find we have to make a new
folder (aka new remote), because if you started with repo init android
and later do googleplex-android that is when it will be slow.
"<location>: Performing initial setup for superproject; this might take
several minutes.".
After fetch completion, added the following notification:
"<location>: Initial setup for superproject completed."
Tested the code with the following commands.
$ ./run_tests -v
Tested the sync code by using repo_dev alias and pointing to this CL.
$ repo_dev init -u persistent-https://googleplex-android.git.corp.google.com/platform/manifest -b rvc-dev --partial-clone --clone-filter=blob:limit=10M --repo-rev=main --use-superproject
Bug: [google internal] b/181178282
Bug: https://crbug.com/gerrit/13707
Change-Id: Ia7fb85c6fb934faaa90c48fc0c55e7f41055f48a
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/299122
Reviewed-by: Mike Frysinger <vapier@google.com>
Tested-by: Raman Tenneti <rtenneti@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r-- | subcmds/sync.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py index 0db96b54..3ad0627d 100644 --- a/subcmds/sync.py +++ b/subcmds/sync.py | |||
@@ -292,7 +292,8 @@ later is required to fix a server side protocol bug. | |||
292 | Returns path to the overriding manifest file. | 292 | Returns path to the overriding manifest file. |
293 | """ | 293 | """ |
294 | superproject = git_superproject.Superproject(self.manifest, | 294 | superproject = git_superproject.Superproject(self.manifest, |
295 | self.repodir) | 295 | self.repodir, |
296 | quiet=opt.quiet) | ||
296 | all_projects = self.GetProjects(args, | 297 | all_projects = self.GetProjects(args, |
297 | missing_ok=True, | 298 | missing_ok=True, |
298 | submodules_ok=opt.fetch_submodules) | 299 | submodules_ok=opt.fetch_submodules) |