mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-11 07:18:28 +01:00
* 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