Skip to content

Commit

Permalink
add progress for save/commit/dump stages
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 26, 2020
1 parent 21c1b26 commit 866b3cd
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ def add(repo, targets, recursive=False, no_commit=False, fname=None):

repo.check_modified_graph(stages)

for stage in stages:
for stage in Tqdm(stages, desc="Processing", unit="file"):
stage.save()

if not no_commit:
Expand Down Expand Up @@ -88,7 +88,10 @@ def _create_stages(repo, targets, fname, pbar=None):
stages = []

for out in Tqdm(
targets, desc="Creating stages", disable=len(targets) < LARGE_DIR_SIZE
targets,
desc="Creating stages",
disable=len(targets) < LARGE_DIR_SIZE,
unit="file",
):
stage = Stage.create(repo, outs=[out], add=True, fname=fname)

Expand Down

0 comments on commit 866b3cd

Please sign in to comment.