Ruslan Kuprieiev
ce27444dd2
scm: remove pkg install leftovers
...
Leftover code was causing problems when working with symlinks, because
it tried to use `realpath` on symlinks to further use it to determine
parent directory.
Fixes #2476
2019-09-09 19:43:10 +03:00
pawel
90738fab9c
stage: prevent writing default wdir into stage file
2019-09-09 16:20:33 +02:00
Ruslan Kuprieiev
b3e4ff7cba
test: install: don't forget to adjust hook tests
2019-09-09 05:10:30 +03:00
Paweł Redzyński
0a214ae15a
test: add: remove TestDvcGit ( #2467 )
2019-09-06 23:15:26 +03:00
Mr. Outis
b903fe8023
get: show error message when path is a DVC-file ( #2470 )
...
* get: show error message when path is a DVC-file
Fix #2468
* exceptions: rename output for data artifact
* get: use method to indetify if file is a DVC-file
* exceptions: change GetDVCFileError message
2019-09-06 21:11:23 +03:00
5ec1d274ae
remote: base: don't checkout existing file ( #2358 )
...
* remote: base: don't checkout existing file
* remote: _checkout_file: split to smaller methods
* state: local: verify if file needs checkout considering link type and access rights
* tests: checkout: test avoiding unnecessary copying
* efiop review refactor
* remote: local: refactor _needs_checkout NOTE
* remote: local: remove bool cast for `protected`, wrap linking in try
* test: checkout: test relinking upon existing cache
* stage: remove obsolete unprotecing from Stage.create
* test: checkout: refactor setting link type
* test: checkout: parametrize relinking test
* remote: local: don't remove cache test file on cache_copy test
* remote: base: remove force from _needs_checkout arguments
* Update dvc/remote/local/__init__.py
Co-Authored-By: Alexander Schepanovski <[email protected] >
* suor review refactor
* remote: base: re-add note why do we unprotect on _checkout_file
* test: checkout: tests for relinking and resetting target protection
* remove checkout behavior change
* remove unused imports
* remote: base: reuse __checkout_file in __checkout_dir
* initial dir
* checkout: test: should relink on repeated add
* remote: cleanup commented lines
* remote: base/local: add save_link flag to _checkout_file
* remote: local: add allow_copy flag to unprotect method
* Update dvc/remote/local/__init__.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* remote: local: remove unnecessary removal warning on _checkout_file
* remote: local: proper cache link type detection
* test: checkout: move repeated add tests
* Update dvc/remote/local/__init__.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* remote: base: remove _needs_checkout
* Update dvc/remote/base.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* remote: base: remove wrappers from _checkout_file
2019-09-06 17:20:32 +03:00
pawel
651d925578
stage: don't unprotect outs on stage create
2019-09-04 12:54:32 +02:00
pawel
4236f18e0c
repo: get: intercept and convert NotDvcRepoErro to UrlNotDvcRepoError
2019-09-03 13:59:04 +02:00
Alexander Schepanovski
8984e9fed4
dvc: use wdir == "." on add
...
Fixes #2404
2019-08-24 10:23:41 +07:00
Ruslan Kuprieiev
2d9497c524
Merge pull request #2421 from pared/2328
...
repo: move: save stage after moving
2019-08-21 16:33:13 +03:00
Ruslan Kuprieiev
5aa9a2f501
Merge pull request #2333 from casperdcl/tqdm
...
change progress bar backend to tqdm
2019-08-21 15:38:51 +03:00
pared
c4de07b2bd
repo: move: save stage after moving
2019-08-21 14:34:23 +02:00
Mr. Outis and Ruslan Kuprieiev
8918bdc383
http: add exception when trying to traverse remote ( #2411 )
...
* http: add exception when trying to traverse remote
Fix #2380
* http: exception raise on `list_cache_paths` instead of `all`
`NotImplementedError` -> `RemoteActionNotImplemented`
* http: raise exception on `__init__`
* set default no_traverse to True on remote base
* tests: explicitly use traverse on data cloud and no traverse with HTTP
* remote: define a new RemoteConfigError
* remote: reuse ConfigError instead of RemoteConfigError
* tests: set no_traverse to False with SSHMocked
* deepsource: fix minor issue with spacing
* remove blankspace
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
2019-08-20 00:47:15 +03:00
Ruslan Kuprieiev
f0c12ea162
Merge pull request #2407 from efiop/master
...
test: run: refactor signal handler tests
2019-08-19 15:22:25 +03:00
Ruslan Kuprieiev
89d3ccae0d
test: run: refactor signal handler tests
...
Current test is testing for signal handler restoration in an obscure
way. As a result, the test wasn't actually testing anything, because
KeyboardInterrupt is raised by default_int_handler, and so raising it
in a mock won't be caught by signal handlers, because they are dealing
with real singnals.
Fix #2406
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-08-19 14:49:19 +03:00
Casper da Costa-Luis
1c8bf11238
Merge remote-tracking branch 'upstream/master' into tqdm
2019-08-19 11:15:13 +01:00
Casper da Costa-Luis
093ad20a84
flake8 unused imports
2019-08-17 16:15:15 +01:00
Casper da Costa-Luis
534d6fdb0c
remove defunct test, extraneous comments
...
- https://github.com/iterative/dvc/pull/2333#discussion_r314927966
2019-08-17 15:43:54 +01:00
Gunnlaugur Thor Briem
e1dd75edcd
fix: don't dvc checkout on git file checkout
...
Closes #2400
2019-08-16 22:11:16 +00:00
Casper da Costa-Luis
60566b380e
minor test update
2019-08-16 22:33:00 +01:00
Casper da Costa-Luis
adf05e6ff0
minor rename
2019-08-16 22:32:47 +01:00
Casper da Costa-Luis
b018933b5a
fix py2 MagicMock(sys.stderr).encoding in tests
2019-08-16 22:26:19 +01:00
Alexander Schepanovski
85289ad00b
api: wrap not found errors
...
api.open()/read() will now raise OutputFileMissingError and
Remote*.open() will raise FileNotFoundError if target file is absent.
2019-08-15 23:20:48 +07:00
Casper da Costa-Luis
f88c2fe5fc
remove old test
2019-08-14 00:19:44 +01:00
Casper da Costa-Luis
3f8caeccc4
Merge remote-tracking branch 'upstream/master' into tqdm
...
major updates across dvc/remote/
2019-08-13 23:29:59 +01:00
Alexander Schepanovski
60a983b63f
api: stream api.open() for local, SSH and HDFS
2019-08-13 18:19:52 +07:00
Casper da Costa-Luis
120dfff05a
naive test update
2019-08-11 01:21:50 +01:00
Casper da Costa-Luis
ee4248df92
fix and update more tests
2019-08-11 01:17:42 +01:00
Casper da Costa-Luis
d0315a3509
minor black, test fixes
2019-08-11 00:09:18 +01:00
Ruslan Kuprieiev
b2f452ef04
Merge pull request #2319 from mroutis/fix-1497
...
metrics: allow multiple targets for show command
2019-08-10 20:10:31 +03:00
Mr. Outis
163d872c92
fix tests for windows
2019-08-09 22:46:25 -05:00
Mr. Outis
fa04c27580
add tests for recursive operations and file not found
2019-08-09 22:06:32 -05:00
Mr. Outis
0e46edd9bb
fail silently but with a more sound error message
...
* Add a `_missing` key to the return value of `repo.metrics.show` to
include targets not recognized as metrics or not found.
2019-08-09 21:55:19 -05:00
Ruslan Kuprieiev
9c5fd0c76c
dvc: support group cache mode
...
In this mode, dvc will set appropriate file/dir permissions to support
sharing cache between different users within the same group.
Fixes #2287
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-08-09 17:10:40 +03:00
Mr. Outis
d4ef110794
exit with 1 if targets were not found
2019-08-06 21:10:48 -05: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
Ruslan Kuprieiev
8ae01de0eb
metrics: allow multiple targets for show command
...
Fix #1497
2019-08-05 10:19:11 -05:00
Ruslan Kuprieiev
ab6d8f9f6f
Merge pull request #2351 from RahulR19/master
...
Renamed git property to repo object in dvc/scm/git
2019-08-04 21:53:25 +03: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
alex maslakoff
433a43e5f0
reformat
2019-08-02 00:26:41 +03:00
Ruslan Kuprieiev
1dea4030c8
Merge pull request #2331 from kurianbenoy/master
...
remove show-checksums flag for dvc status commmand
2019-08-01 20:58:24 +03:00
alex maslakoff
7347701145
add test for modified file content
2019-08-01 11:27:28 +03:00
kurianbenoy
cba4c45bdb
removed show-checksums for files pull, push, data_sync.py and from test files
2019-07-30 23:34:06 +05:30
Alexander Schepanovski
50b5b87304
dvc: batch push/pull/fetch/status
...
This will speed up cache collection and then run single cloud op for all
collected cache.
Fixes #2308 .
2019-07-30 13:33:01 +03:00
Gunnlaugur Thor Briem
e917ce0ae8
dvc: hooks only act in branches where dvc active ( #2338 )
...
* dvc: hooks only act in branches where dvc active
In a branch where DVC hasn't been initialized (as detected by
`git ls-files .dvc` not listing any files), don't invoke dvc in the git hooks.
This avoids trouble when switching between branches with and without dvc
initialized.
Fixes #2208
* dvc: simplify hooks per PR comment
2019-07-29 16:26:49 +03:00