mirror of
https://gerrit.googlesource.com/git-repo
synced 2026-05-07 11:29:27 +00:00
progress: Ignore updates after progress ends
This addresses the occasional "..working.." message at the end of sync. Bug: 503869525 Change-Id: I489d29fa8ae588d77abb7fee5f157800d4abb368 Reviewed-on: https://gerrit-review.googlesource.com/c/git-repo/+/574482 Commit-Queue: Gavin Mak <gavinmak@google.com> Tested-by: Gavin Mak <gavinmak@google.com> Reviewed-by: Becky Siegel <beckysiegel@google.com>
This commit is contained in:
committed by
gerrit-scoped@luci-project-accounts.iam.gserviceaccount.com
parent
b43a20b859
commit
e2671c184e
@@ -159,6 +159,8 @@ class Progress:
|
||||
inc: The number of items completed.
|
||||
msg: The message to display. If None, use the last message.
|
||||
"""
|
||||
if self._ended:
|
||||
return
|
||||
self._done += inc
|
||||
if msg is None:
|
||||
msg = self._last_msg
|
||||
|
||||
Reference in New Issue
Block a user