File tree Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Expand file tree Collapse file tree 2 files changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -1407,7 +1407,7 @@ def download_commits(
14071407
14081408 get_component_mapping ()
14091409
1410- commits = tuple (transform (hg , repo_dir , c ) for c in commits )
1410+ commits = tuple (transform (hg , repo_dir , c ) for c in tqdm ( commits ) )
14111411
14121412 close_component_mapping ()
14131413
Original file line number Diff line number Diff line change 1111import hglib
1212import requests
1313import tenacity
14+ from tqdm import tqdm
1415
1516from bugbug import repository , test_scheduling , utils
1617from bugbug_http import ALLOW_MISSING_MODELS , REPO_DIR
@@ -161,7 +162,8 @@ def retrieve_schedulable_tasks() -> None:
161162 # Update the commits DB.
162163 logger .info ("Browsing all commits..." )
163164 nodes = collections .deque (
164- (commit ["node" ] for commit in repository .get_commits ()), maxlen = 4096
165+ (commit ["node" ] for commit in tqdm (repository .get_commits ())),
166+ maxlen = 4096 ,
165167 )
166168 nodes .reverse ()
167169 logger .info ("All commits browsed." )
You can’t perform that action at this time.
0 commit comments