Ruslan Kuprieiev
8f568ab197
state: use diskcache ( #5505 )
...
* state: only load when needed
* state: don't use separate load/dump
* checkout: group link removal logic together
* state: use diskcache.Cache
* staging: use pbar and save to state
* state: don't pass the whole repo to __init__
* staging: explicitly pass state object
* fs: get rid of odb property
* state: don't close the connection to cache
* repo: close: close state
2021-02-23 20:51:34 +02:00
Ruslan Kuprieiev
e0842ce01e
dvc: rename cache -> odb ( #5481 )
2021-02-16 22:49:25 +02:00
Dmitry Kropachev
6b05cc5e24
dvc.command.diff: add renamed detection feature ( #5160 )
...
fixes #5150
2021-01-09 13:49:03 +09:00
Peter Rowlands (변기호)
37f890444a
diff: account for deleted workspace data ( #5205 )
...
* diff: add test for deleted data in addition to .dvc file
* diff: handle deleted data when checking for missing cache
2021-01-05 17:52:24 +09:00
Sandeep Mistry and Ruslan Kuprieiev
31502aee0a
diff: add support for --targets ( #4938 )
...
* wip: add target support (back) to dvc diff
* Change diff param to targets and update repo.diff accordingly
* Update dvc diff --targets with PR review feedback
* Tests for dvc diff --targets
* Update dvc diff --targets with PR review feedback
* Update dvc diff --targets with PR review feedback and additional tests
* split out new diff target tests as per PR comment
* remove unnecessary cache dir removal from setup_targets_test
* Update dvc/command/diff.py
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2020-12-15 16:19:26 +02:00
Peter Rowlands (변기호)
d1cc143ef2
diff: add state for files missing from both workspace and cache ( #4530 )
...
* diff: support missing cache status for workspace diff
* diff: add --hide-missing option to hide cache missing status
* update command tests
* update diff func tests
* only show missing cache status when diffing local workspace
* suppress all output if no changes and --hide-missing
* use hide_missing instead of show_missing
* use is_dvc
2020-09-07 04:44:04 +03:00
Peter Rowlands (변기호)
1f495d66dd
diff: use RepoTree to compare directory contents ( #4518 )
...
* diff: use RepoTree to get granular results for dir outs
* update tests for dir file granularity
* diff: prefer repo_tree.get_hash when possible
* DvcTree: handle extra files in dirty dvc out dirs
2020-09-03 15:12:57 +03:00
Ruslan Kuprieiev
597ab98d0e
diff: hanle repo with no commits ( #3784 )
...
`git diff` doesn't throw errors, so we could do the same.
Fixes #3398
2020-05-14 02:14:37 +03:00
Peter Rowlands (변기호)
833e82a7ea
Drop Python 3.5 support ( #3792 )
...
* drop python 3.5 support
* dvc: remove fspath() use inside os.path calls
* dvc: replace dvc.compat.fspath with os.fspath
* tests: replace dvc.compat.fspath with os.fspath
* utils: relpath() should use fspath/str
* utils: os.readlink doesn't support path-like obj on Windows until 3.8
2020-05-14 01:46:42 +03:00
Casper da Costa-Luis
2bb7257a06
lint: isort pre-commit & misc improvements ( #3749 )
...
* test: clean flake8 config root clutter
* test: pre-commit: add isort
Compatible with black (see https://github.com/timothycrosley/isort/issues/694 )
* lint: reorder imports
* lint: more complex imports
* lint: fix deepsource
* config: isort: add first party dvc
* tests: restyled: add isort
* temp commit to revert before merge
* Revert "temp commit to revert before merge"
This reverts commit 11db0fd8e95fe891597cbb9bf804480909b19e24.
2020-05-06 23:56:07 +03:00
Ruslan Kuprieiev
505b88afae
diff: make output consistent with other diff commands ( #3727 )
...
* diff: make output consistent with other diff commands
Fixes #3435
* tests: plot: fix flaky test
2020-05-04 00:25:55 +03:00
Ruslan Kuprieiev
4e9b38970a
dvc: move temporary files to .dvc/tmp ( #3725 )
...
Fixes #3666
2020-05-03 18:42:12 +03:00
254cf83310
metrics diff error message in --no-scm projects ( #3650 )
...
* fix #3605
* changed exception raise position
* Updated error msg
* message changed
* metrics diff: output edits per
per https://github.com/iterative/dvc/pull/3650
and https://github.com/iterative/dvc/pull/3650#pullrequestreview-396837915
* Update tests/func/test_metrics.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* NoSCM now had a default attribute getting method
`NoSCM` Object now raise `NoSCMError` when calling attributes which only in `Git` Object
* Joined lines
Mail change test
* tests: diff: use NoSCMError
Co-authored-by: myname <[email protected] >
Co-authored-by: karajan1001 <[email protected] >
Co-authored-by: Jorge Orpinel <[email protected] >
Co-authored-by: Ruslan Kuprieiev <[email protected] >
Co-authored-by: Ruslan Kuprieiev <[email protected] >
2020-04-21 21:15:46 +03:00
nik123
224b0fc2ce
tests: test_directories ( #3649 )
...
Fixed test_directories test in tests/func/test_diff.py
2020-04-18 19:24:03 +03:00
Paweł Redzyński
eee3d7674f
diff: analyse working tree when dirty ( #3534 )
2020-03-27 15:17:55 +02:00
Ruslan Kuprieiev
6559b9d222
dvc: use protected mode by default ( #3472 )
...
* dvc: use protected mode by default
Fixes #3261
Fixes #2041
* unprotect: adjust help message
https://github.com/iterative/dvc.org/pull/1058/files/21aab371a487acf6f6e6201b29cd832e7c55ed23#r393324668
2020-03-17 19:16:21 +02:00
Paweł Redzyński
87338c994f
cmd: diff: don't load dir cache for diff ( #3468 )
2020-03-16 21:39:34 +02:00
Ivan Shcheklein
eebbf3f812
change diff checksum arg name to hash ( #3384 )
2020-02-23 06:32:35 +02:00
Mr. Outis
8e9d8145cd
diff: remove deadcode, replace diffable with dicts
2020-01-29 17:42:35 -06:00
Mr. Outis
f41ceb51da
tests: adjust doc
2020-01-27 17:03:50 -06:00
Mr. Outis
7f6324e298
diff: remove --target
2020-01-27 16:06:46 -06:00
Mr. Outis
3c6b52bb91
diff: improve RevError message
2020-01-27 14:27:56 -06:00
Mr. Outis
a12d81fd0a
tests/diff: fix windows compat issues
2020-01-27 14:13:54 -06:00
Mr. Outis
2370cb12b3
diff: use logger instead of print
2020-01-27 12:33:24 -06:00
Mr. Outis
9171b9e0ad
💅 add reference explaining git revisions
2020-01-27 12:07:28 -06:00
Mr. Outis
10c0ff22d6
diff: remove extra sorting
2020-01-27 01:40:24 -06:00
Mr. Outis
e6a957a426
tests/diff: add directory to no_cache_entry
2020-01-26 23:24:24 -06:00
Mr. Outis
bb22acd4c9
diff: enable using diff when there is no cache
2020-01-26 22:45:35 -06:00
Mr. Outis
6ef90f5acf
diff: add option to display checksums
2020-01-26 20:22:53 -06:00
Mr. Outis
fe4eba5941
diff: handle exceptions
2020-01-26 17:50:47 -06:00
Mr. Outis
bd1adf2c23
diff: add CLI output
2020-01-26 15:12:30 -06:00
Mr. Outis
a4ade13c0a
diff: add JSON output
2020-01-26 13:25:38 -06:00
Mr. Outis
3db983fc2e
tests/diff: use os.path.join instead of implying separator
2020-01-26 02:00:38 -06:00
Mr. Outis
5ace747c05
diff: group by change state and support dirs
2020-01-26 01:41:48 -06:00
Mr. Outis
07abd1b41b
diff: add support for specifying a target
2020-01-25 11:00:36 -06:00
Mr. Outis
576a27667f
diff: fix some tests and adjust result for modify
2020-01-24 19:05:23 -06:00
Mr. Outis
f791371224
diff: change structure to be indexed by path
2020-01-24 13:29:29 -06:00
Mr. Outis
b2de740556
tests: add result examples
2020-01-24 10:30:15 -06:00
Mr. Outis
198bf55aaf
diff: reimplement interface and tests from scratch
2020-01-24 00:56:05 -06:00
Mr. Outis
fd82402d34
py3: use new magic from PEP 3135
2020-01-02 16:24:31 -06:00
Mr. Outis
94a0914bba
py3: get rid of future imports
2019-12-30 19:35:48 -06:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
381601f4ee
dvc: cache graph/stages/pipelines ( #2529 )
...
* dvc: cache graph/stages/pipelines
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* repo: check_dag: don't reset the cache
https://github.com/iterative/dvc/pull/2529#discussion_r327711928
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* repo: rename check_dag(stages) -> check_modified_graph(new_stages)
https://github.com/iterative/dvc/pull/2529#discussion_r327708439
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* repo: refactor "active" logic and remove it from Repo class
* repo: use tree.setter to automate cache reset
As noted by @Suor's , this is much less prone to errors.
* repo: move graph-related staticmethods into graph.py
As per @Suor's request.
* dvc: remove unused from_directory
https://github.com/iterative/dvc/pull/2529#discussion_r328079258
* repo: use _tree instead of __tree
https://github.com/iterative/dvc/pull/2529#discussion_r328071115
* repo: add a note about cache invalidation on repo.lock release
https://github.com/iterative/dvc/pull/2529#discussion_r328071635
* repo: rename reset() -> _reset()
https://github.com/iterative/dvc/pull/2529#discussion_r328079899
* pipeline: use graph helpers
https://github.com/iterative/dvc/pull/2529#discussion_r327502293
* repo: use list comprehension for collect()
https://github.com/iterative/dvc/pull/2529#discussion_r328076651
* repo: graph: only use first cycle
https://github.com/iterative/dvc/pull/2529#discussion_r328081346
* dvc: don't use G.nodes()
https://github.com/iterative/dvc/pull/2529#discussion_r328089671
https://github.com/iterative/dvc/pull/2529#discussion_r328089878
2019-09-26 07:42:29 +03:00
Ruslan Kuprieiev
17700fc4e8
Merge pull request #2353 from GildedHonour/issue1874
...
Fix #1874
2019-08-06 18:46:21 +03:00
alex maslakoff
b78843881a
fix 'diff cmd message' test
2019-08-06 13:51:30 +04:00
RahulR19
371c57ac24
Renamed git to repo in dvc/scm/git along with changes in some tests.
2019-08-04 23:26:45 +05:30
alex maslakoff
619f53a555
remove unused imports
2019-08-03 20:31:28 +03:00
alex maslakoff
10fa6eddb1
fix 2 tests
2019-08-03 20:25:07 +03:00
alex maslakoff
60359d8b98
merge 2 tests
2019-08-03 11:10:09 +03:00
alex maslakoff
81c8ed9da5
add a test for 'dir changes'
2019-08-02 16:09:10 +03:00