summaryrefslogtreecommitdiffstats
path: root/subcmds/sync.py
diff options
context:
space:
mode:
authorGavin Mak <gavinmak@google.com>2023-04-27 05:58:57 +0000
committerLUCI <gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-05-02 20:51:46 +0000
commitedcaa94ca86d29c1ea106eddac837f4a699379ba (patch)
tree7b73163f09f2e1b6bd4100f0545e4e128e4b0cda /subcmds/sync.py
parent7ef5b465cd5a3156f0dc2fcc914c2a92b2bf226a (diff)
downloadgit-repo-edcaa94ca86d29c1ea106eddac837f4a699379ba.tar.gz
sync: Display total elapsed fetch time
Give users an indication that `repo sync` isn't stuck if taking a long time to fetch. Bug: https://crbug.com/gerrit/11293 Change-Id: Iccdaec918f86c9cc2db5dc12f9e3eef7ad0bcbda Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/371414 Tested-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Josip Sokcevic <sokcevic@google.com> Reviewed-by: Joanna Wang <jojwang@google.com> Commit-Queue: Gavin Mak <gavinmak@google.com>
Diffstat (limited to 'subcmds/sync.py')
-rw-r--r--subcmds/sync.py8
1 files changed, 7 insertions, 1 deletions
diff --git a/subcmds/sync.py b/subcmds/sync.py
index eabaa68b..324f15b5 100644
--- a/subcmds/sync.py
+++ b/subcmds/sync.py
@@ -675,7 +675,13 @@ later is required to fix a server side protocol bug.
675 jobs = opt.jobs_network 675 jobs = opt.jobs_network
676 fetched = set() 676 fetched = set()
677 remote_fetched = set() 677 remote_fetched = set()
678 pm = Progress("Fetching", len(projects), delay=False, quiet=opt.quiet) 678 pm = Progress(
679 "Fetching",
680 len(projects),
681 delay=False,
682 quiet=opt.quiet,
683 show_elapsed=True,
684 )
679 685
680 objdir_project_map = dict() 686 objdir_project_map = dict()
681 for project in projects: 687 for project in projects: