Files
dvc/dvc/repo/pull.py
T
Saugat Pachhai 1c0f5cdf4b pylint: enable additional checks (#4122)
Created a separate pylint plugin to disable some checks for tests.
2020-06-29 19:15:05 +03:00

42 lines
905 B
Python

import logging
from dvc.repo import locked
logger = logging.getLogger(__name__)
@locked
def pull(
self,
targets=None,
jobs=None,
remote=None,
all_branches=False,
with_deps=False,
all_tags=False,
force=False,
recursive=False,
all_commits=False,
run_cache=False,
):
if isinstance(targets, str):
targets = [targets]
processed_files_count = self._fetch( # pylint: disable=protected-access
targets,
jobs,
remote=remote,
all_branches=all_branches,
all_tags=all_tags,
all_commits=all_commits,
with_deps=with_deps,
recursive=recursive,
run_cache=run_cache,
)
stats = self._checkout( # pylint: disable=protected-access
targets=targets, with_deps=with_deps, force=force, recursive=recursive
)
stats["fetched"] = processed_files_count
return stats