Files
dvc/dvc/repo/push.py
T
Shao-Chun Ma 73b2a3362c dvc: refactor
Add a new return value for pull, push, and fetch.
It represents the number of files processed.

Fixes #1619
2019-02-16 15:25:05 +01:00

29 lines
636 B
Python

from __future__ import unicode_literals
def push(
self,
target=None,
jobs=1,
remote=None,
all_branches=False,
show_checksums=False,
with_deps=False,
all_tags=False,
recursive=False,
):
with self.state:
used = self.used_cache(
target,
all_branches=all_branches,
all_tags=all_tags,
with_deps=with_deps,
force=True,
remote=remote,
jobs=jobs,
recursive=recursive,
)["local"]
return self.cloud.push(
used, jobs, remote=remote, show_checksums=show_checksums
)