Skip to content

Commit

Permalink
add progress for stages; also may need reverting
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Jan 26, 2020
1 parent 3b65181 commit 21c1b26
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions dvc/repo/add.py
Original file line number Diff line number Diff line change
Expand Up @@ -72,9 +72,9 @@ def _find_all_targets(repo, target, recursive):
fname
for fname in Tqdm(
repo.tree.walk_files(target),
desc="Finding files",
desc="Recursing " + target,
bar_format=Tqdm.BAR_FMT_NOTOTAL,
leave=False,
unit="file",
)
if not repo.is_dvc_internal(fname)
if not Stage.is_stage_file(fname)
Expand All @@ -87,7 +87,9 @@ def _find_all_targets(repo, target, recursive):
def _create_stages(repo, targets, fname, pbar=None):
stages = []

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

if not stage:
Expand Down

0 comments on commit 21c1b26

Please sign in to comment.