removed show-checksums for files pull, push, data_sync.py and from test files

This commit is contained in:
kurianbenoy
2019-07-30 23:34:06 +05:30
parent 7059ccb851
commit cba4c45bdb
5 changed files with 2 additions and 20 deletions
-6
View File
@@ -100,12 +100,6 @@ def shared_parent_parser():
shared_parent_parser.add_argument(
"-j", "--jobs", type=int, help="Number of jobs to run simultaneously."
)
shared_parent_parser.add_argument(
"--show-checksums",
action="store_true",
default=False,
help="Show checksums instead of file names.",
)
shared_parent_parser.add_argument(
"targets",
nargs="*",
-2
View File
@@ -7,7 +7,6 @@ def pull(
jobs=None,
remote=None,
all_branches=False,
show_checksums=False,
with_deps=False,
all_tags=False,
force=False,
@@ -19,7 +18,6 @@ def pull(
remote=remote,
all_branches=all_branches,
all_tags=all_tags,
show_checksums=show_checksums,
with_deps=with_deps,
recursive=recursive,
)
+1 -4
View File
@@ -7,7 +7,6 @@ def push(
jobs=None,
remote=None,
all_branches=False,
show_checksums=False,
with_deps=False,
all_tags=False,
recursive=False,
@@ -23,6 +22,4 @@ def push(
jobs=jobs,
recursive=recursive,
)["local"]
return self.cloud.push(
used, jobs, remote=remote, show_checksums=show_checksums
)
return self.cloud.push(used, jobs, remote=remote)
+1 -1
View File
@@ -74,7 +74,7 @@ def _cloud_status(
ret = {}
status_info = self.cloud.status(used, jobs, remote=remote)
for md5, info in status_info.items():
for _, info in status_info.items():
name = info["name"]
status = info["status"]
if status in [cloud.STATUS_OK, cloud.STATUS_MISSING]:
-7
View File
@@ -507,19 +507,14 @@ class TestDataCloudCLIBase(TestDvc):
cache_dir = stage_dir.outs[0].cache_path
# FIXME check status output
self.main(["status", "-c", "--show-checksums"] + args)
self.main(["push"] + args)
self.assertTrue(os.path.exists(cache))
self.assertTrue(os.path.isfile(cache))
self.assertTrue(os.path.isfile(cache_dir))
self.main(["status", "-c", "--show-checksums"] + args)
shutil.rmtree(self.dvc.cache.local.cache_dir)
self.main(["status", "-c", "--show-checksums"] + args)
self.main(["fetch"] + args)
self.assertTrue(os.path.exists(cache))
self.assertTrue(os.path.isfile(cache))
@@ -536,8 +531,6 @@ class TestDataCloudCLIBase(TestDvc):
self.assertEqual(fd.read(), self.FOO_CONTENTS)
self.assertTrue(os.path.isfile(cache_dir))
self.main(["status", "-c", "--show-checksums"] + args)
# NOTE: check if remote gc works correctly on directories
self.main(["gc", "-c", "-f"] + args)
shutil.move(