diff options
author | Gavin Mak <gavinmak@google.com> | 2023-05-04 04:48:43 +0000 |
---|---|---|
committer | LUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2023-05-18 18:10:24 +0000 |
commit | 551285fa35ccd0836513e9cf64ee8d3372e5e3f4 (patch) | |
tree | 61acabd91347a510abe16976bb5be898c87c42e2 /subcmds/start.py | |
parent | 131fc96381e112b0aa7a1012243e2ed5cfd3ec01 (diff) | |
download | git-repo-551285fa35ccd0836513e9cf64ee8d3372e5e3f4.tar.gz |
sync: Show elapsed time for the longest syncing project
"Last synced: X" is printed only after a project finishes syncing.
Replace that with a message that shows the longest actively syncing
project.
Bug: https://crbug.com/gerrit/11293
Change-Id: I84c7873539d84999772cd554f426b44921521e85
Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/372674
Reviewed-by: Josip Sokcevic <sokcevic@google.com>
Commit-Queue: Gavin Mak <gavinmak@google.com>
Reviewed-by: Joanna Wang <jojwang@google.com>
Tested-by: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'subcmds/start.py')
-rw-r--r-- | subcmds/start.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/subcmds/start.py b/subcmds/start.py index 9baf4256..f6355126 100644 --- a/subcmds/start.py +++ b/subcmds/start.py | |||
@@ -142,14 +142,14 @@ revision specified in the manifest. | |||
142 | sync_buf = SyncBuffer(self.manifest.manifestProject.config) | 142 | sync_buf = SyncBuffer(self.manifest.manifestProject.config) |
143 | project.Sync_LocalHalf(sync_buf) | 143 | project.Sync_LocalHalf(sync_buf) |
144 | project.revisionId = gitc_project.old_revision | 144 | project.revisionId = gitc_project.old_revision |
145 | pm.update() | 145 | pm.update(msg="") |
146 | pm.end() | 146 | pm.end() |
147 | 147 | ||
148 | def _ProcessResults(_pool, pm, results): | 148 | def _ProcessResults(_pool, pm, results): |
149 | for result, project in results: | 149 | for result, project in results: |
150 | if not result: | 150 | if not result: |
151 | err.append(project) | 151 | err.append(project) |
152 | pm.update() | 152 | pm.update(msg="") |
153 | 153 | ||
154 | self.ExecuteInParallel( | 154 | self.ExecuteInParallel( |
155 | opt.jobs, | 155 | opt.jobs, |