Commit Graph
55 Commits
Author SHA1 Message Date
Ruslan Kuprieiev 4c5cb7afae checkout: reorganize "git checkout hint" exception
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-03-29 13:44:32 +02:00
pared ace92cb422 repo: fix stages gathering for checkout 2019-03-28 12:13:39 +01:00
Paweł Redzyński 5a736cb79a remote local, repo: use walk_files instead of os.walk (#1750) 2019-03-20 18:45:21 +02:00
Paweł Redzyński ee16409495 checkout: progress bar (#1713) 2019-03-20 13:39:10 +02:00
Ivan Shcheklein 75421f0f21 migrate to pytest 2019-03-17 14:49:49 -07:00
Ruslan Kuprieiev b5d7bf0144 test: format with latest black
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-03-14 22:41:37 +02:00
Ruslan Kuprieiev 9ca00adde8 dvc: modify flake8 configuration
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-02-22 19:36:19 +02:00
Ruslan Kuprieiev ba8d83e9b1 dvc: refactor dvc project class
1) split Project's methods into separate files;
2) rename Project into Repo(similar to gitpython's Repo)

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-02-13 03:31:23 +02:00
Thibault de Boissiere 2c67b59fc0 checkout: Suggest git checkout when dcv checkout fails (#1580) 2019-02-05 23:46:13 +02:00
Ruslan Kuprieiev 4896f08ddf dvc: comply with both flake8 and black
flake8 provides some additional features like unused vars check, etc, so
it makes total sense to use it as well.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-02-04 00:10:36 +02:00
Ruslan Kuprieiev ba091a6d34 checkout: handle EOFError when running in a git hook
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-01-31 22:56:48 +02:00
Ruslan Kuprieiev 4069e34130 dvc: use black instead of flake8
Fixes #1546

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2019-01-30 03:48:36 +02:00
Mr. Outis e600e3a736 remote: Use checksum instead of MD5/ETag 2019-01-19 00:02:28 -06:00
Ruslan Kuprieiev 141de1443c remote: RFC: unify gc code
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-12-20 22:09:26 +02:00
Ruslan Kuprieiev d5dd0fd804 test: don't use sleep
Since we now use file size to help detect file changes on filesystems
with bad mtime resolution, we no longer need these explicit sleep()
calls in our tests for mac os.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-12-17 12:42:35 +02:00
Mr. Outis 948021f5b0 rfc: Prompt as functions instead of a class 2018-12-14 10:47:18 -06:00
Ruslan Kuprieiev a67988a80e test: enable flake8 checks for tests
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-12-06 06:40:55 +02:00
Mr. Outis 38d666d77d import: Output as on optional argument (#1351) (#1378)
* import: Output as on optional argument

Close #1335

* Use tempfile to prevent circular dependencies
2018-11-28 23:35:37 +02:00
Mr. Outis 6d54a114ae local: Don't prompt at removal if file is already cached (#1367)
* local: Don't prompt at removal if file is already cached

Fix #1366

* [fix] Do `remove` at `save_remove`

* Use `state.update` to compute checksum instead of `save_info`

* PEP8 compilant
2018-11-26 21:25:54 +02:00
Ruslan Kuprieiev 119579af0f test: add additional checks 2018-11-18 20:22:36 +02:00
Mr. Outis 2906a31b66 tests: dvc checkout --force 2018-11-17 19:47:50 -06:00
Mr. Outis d406361bd3 checkout: Prompt when deleting files from working dir
Close #1328
2018-11-17 19:36:47 -06:00
Ruslan Kuprieiev c62b1a1c88 test: debug checkout test 2018-11-15 13:55:48 +02:00
Ruslan Kuprieiev ebed534c7a Merge pull request #1327 from mroutis/fix-1326
checkout: Clean working directory changes of tracked dir
2018-11-14 19:28:27 +02:00
Mr. Outis b4588671a0 Add a test for it 2018-11-14 11:03:53 -06:00
Ruslan Kuprieiev 8106d6bf09 test: debug test_checkout 2018-11-14 15:03:40 +02:00
Ruslan Kuprieiev 6de91c0b28 gitignore: use unambiguous paths
Fixes #1324

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-11-14 14:43:00 +02:00
Mr. Outis fc7545b6cf checkout: Remove selectively on directory files when changed (#1320)
Fix: #1220
2018-11-13 13:30:19 -06:00
Ruslan Kuprieiev 7720c35544 checkout: add --with-deps support
Fixes #1296

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-11-06 14:19:38 +02:00
Ruslan Kuprieiev cf44027604 test: checkout: sleep 2018-10-14 05:03:47 +03:00
Ruslan Kuprieiev 4503a7f503 dvc: check if cache file inside dir was changed
Fixes #1125

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-10-14 03:03:41 +03:00
Ruslan Kuprieiev d1077c4457 test: improve coverage
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-10-01 18:11:17 +03:00
Ruslan Kuprieiev 89aa2a957e test: don't forget to check return code
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-09-19 23:38:58 +03:00
Ruslan Kuprieiev c6f642fd6b dvc: add --recursive
Fixes #1026

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-08-21 10:41:19 +03:00
Ruslan Kuprieiev f5bb3e4501 tests: use shallow=False with filecmp.cmp()
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-08-05 00:52:29 +03:00
Ruslan Kuprieiev f274a745a0 tests: checkout: test CLI for single files
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-07-01 21:02:43 +03:00
Ruslan Kuprieiev 38c585a5f9 checkout: create dir even if it is empty
Fixes #737

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-06 02:37:51 +03:00
Ruslan Kuprieiev 88397ef430 dvc: use Remote concept in existing code
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-06-04 22:28:14 +03:00
Ruslan Kuprieiev 2bbefc91ef deps: introduce s3/gs dependencies
E.g.:
dvc run -d gs://bucket/file -o file gsutil cp gs://bucket/file file
dvc run -d s3://bucket/file -o file aws s3 cp s3://bucket/file file

Etags are used to track deps in both cases.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-05-24 18:24:18 +03:00
Ruslan Kuprieiev 52c08b2926 dvc: checkout single file
Fixes #666

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-04-24 13:45:30 +03:00
Ruslan Kuprieiev 958eab2f23 dvc: fix checkout/repro with stage files without md5
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-20 00:31:30 +02:00
Ruslan Kuprieiev 2fe6091ffb dvc: don't change mode of files
Since we can now detect cache corruption, we don't need
to force any permissions on our data files.

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-14 12:48:16 +02:00
Ruslan Kuprieiev 3ab62555bd tests: checkout: sleep(1) to emulate realistic behavior
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-13 20:51:29 +02:00
Ruslan Kuprieiev b728d942c7 state: optimize state storage and computation
Reduces 'dvc add' time for 30K files from 25sec to 9sec.

Fixes #546

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-13 20:18:03 +02:00
Ruslan Kuprieiev 97643de654 test: add debug msgs for mtime issue
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-12 22:51:17 +02:00
Ruslan Kuprieiev 440768b056 tests: add debug msg
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-12 20:38:57 +02:00
Ruslan Kuprieiev 0cd0e6700f cache: check of cache corruption
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-03-12 00:58:45 +02:00
Ruslan Kuprieiev 0fcb44b364 dvc: don't add regular files to gitignore
Fixes #430

Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-16 04:27:54 +02:00
Ruslan Kuprieiev ddf40a9cf9 test: fix on python3
Signed-off-by: Ruslan Kuprieiev <[email protected]>
2018-01-15 15:58:52 +02:00
Dmitry 3163b8a3e2 checkout test: add remove file test and gitignore test 2018-01-15 02:26:09 -08:00