From 551285fa35ccd0836513e9cf64ee8d3372e5e3f4 Mon Sep 17 00:00:00 2001 From: Gavin Mak Date: Thu, 4 May 2023 04:48:43 +0000 Subject: 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 Commit-Queue: Gavin Mak Reviewed-by: Joanna Wang Tested-by: Gavin Mak --- subcmds/start.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'subcmds/start.py') 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. sync_buf = SyncBuffer(self.manifest.manifestProject.config) project.Sync_LocalHalf(sync_buf) project.revisionId = gitc_project.old_revision - pm.update() + pm.update(msg="") pm.end() def _ProcessResults(_pool, pm, results): for result, project in results: if not result: err.append(project) - pm.update() + pm.update(msg="") self.ExecuteInParallel( opt.jobs, -- cgit v1.2.3-54-g00ecf