summaryrefslogtreecommitdiffstats
path: root/subcmds/help.py
diff options
context:
space:
mode:
authorMike Frysinger <vapier@google.com>2021-04-15 02:06:28 -0400
committerMike Frysinger <vapier@google.com>2021-04-19 16:42:06 +0000
commit6823bc269d63a66c8813803f1057eac328bc3ccb (patch)
treeca106a92351e409f226ed55a881b4304580458fc /subcmds/help.py
parentad8aa6977248c46669575282302f5de90043fdf0 (diff)
downloadgit-repo-6823bc269d63a66c8813803f1057eac328bc3ccb.tar.gz
sync: cleanup sleep+retry logic a bitv2.14
Make sure we print a message whenever we retry so it's clear to the user why repo is pausing for a long time, and why repo might have passed even though it displayed some errors earlier. Also unify the sleep logic so we don't have two independent methods. This makes it easier to reason about. Also don't sleep if we're in the last iteration of the for loop. It doesn't make sense to and needlessly slows things down when there are real errors. Bug: https://crbug.com/gerrit/12494 Change-Id: Ifceace5b2dde75c2dac39ea5388527dd37376336 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/303402 Reviewed-by: Sam Saccone 🐐 <samccone@google.com> Tested-by: Mike Frysinger <vapier@google.com>
Diffstat (limited to 'subcmds/help.py')
0 files changed, 0 insertions, 0 deletions