From 2e1166d520a09a72f2202e7dc37ece490e5d60f4 Mon Sep 17 00:00:00 2001 From: Ruslan Kuprieiev Date: Tue, 26 Sep 2023 01:02:11 +0300 Subject: [PATCH] fetch: don't clear pbars There is more we can do during the `Fetching` stage, but it will require additional tweaks, so just keeping it simple here. Similar to https://github.com/iterative/dvc/pull/9974 --- dvc/repo/fetch.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/dvc/repo/fetch.py b/dvc/repo/fetch.py index 94fb09ace..d63bec83a 100644 --- a/dvc/repo/fetch.py +++ b/dvc/repo/fetch.py @@ -143,6 +143,7 @@ def fetch( # noqa: C901, PLR0913 with ui.progress( desc="Collecting", unit="entry", + leave=True, ) as pb: data = collect( indexes.values(), @@ -156,7 +157,8 @@ def fetch( # noqa: C901, PLR0913 with ui.progress( desc="Fetching", - unit="file", + bar_format="{desc}", + leave=True, ) as pb: try: fetch_transferred, fetch_failed = ifetch(