Ruslan Kuprieiev
498ee509da
dvc: use consistent messages for InvalidArgumentError ( #3506 )
...
Per https://discordapp.com/channels/485586884165107732/563406153334128681/689896480898810034
2020-03-18 21:34:46 +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
Saugat Pachhai
4b5d4d759a
gc: do not work without specifier when using -c flag ( #3493 )
...
* gc: ask for specifier when using -c flag
* tests: add -w flag with gc -c
2020-03-17 18:12:42 +02:00
Saugat Pachhai
5101bf1253
gc: make it safer by only activating by use of certain flags ( #3363 )
...
* gc: make it safer by only activating by use of certain flags
Previous plain `gc` is now not supported. The same behavior can be trigger by
`gc -w` or `gc --workspace`. When `--all-{tags, commits, branches}` are
specified, it will work as if `-w` is also specified (same as before).
* tests: adjust gc to use workspace on test_repro
2020-02-21 12:39:59 +02:00
Mr. Outis
753aef4910
black: bump version 19.3b0 -> 19.10b0 ( #3307 )
2020-02-12 02:41:24 +02:00
Alexander Schepanovski
4117206c67
test: drop repo_template fixture
2020-01-20 11:49:13 +07:00
Sujith H
1e3abe2f38
dvc: update gc to remove unpacked dir
...
In local remote its found that gc does not
remove the unpacked dir. This change set
helps to remove it.
Signed-off-by: Sujith H <[email protected] >
2020-01-06 23:58:06 +05:30
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
Alexander Schepanovski
fcebad821e
test: refactor tmp dir helper fixtures
...
- `tmp_dir` descends from Path
- convenient template methods to generate files and dirs, add them to
dvc and git and commit to git
- independent of old basic_env structures
- can go in any order
- modular: start with empty `tmp_dir`, initialize git with `scm`, dvc
repo with `dvc` add "repo template" with `repo_template`, ...
2019-12-02 23:31:54 +01:00
Ivan Shcheklein
73f95ee6b4
tests: minor style and typo fixes in dvc gc tests
2019-11-05 16:25:38 -08:00
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Ruslan Kuprieiev
480a612da4
output: base: don't forget to return empty cache ( #2656 )
...
* output: base: don't forget to return empty cache
CC @Suor
Fixes https://gist.github.com/leimbernon/21924e02a998e3f1604990f8a7824c37
Signed-off-by: Ruslan Kuprieiev <[email protected] >
* gc: add test for missing .dir cache file
2019-10-23 22:47:50 +03:00
Alexander Schepanovski
30341438e0
gc: added --all-commits ( #2643 )
...
* dvc: fix branch suffixes in status/push/pull
* gc: add --all-commits flag
* gc: fix gc warning
Say that we always leave things used in the working tree
2019-10-23 18:00:31 +03:00
Ruslan Kuprieiev
918ef646dc
appveyor: test py2 and py3
...
Related to #2166
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-23 13:33:47 +03:00
Ruslan Kuprieiev
6f11f1f51f
test: move func tests to tests/func
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-04-16 20:19:22 +03:00