Aman Sharma
a79816920d
Move copyfile to fs.py
2020-01-09 04:57:53 +05:30
Aman Sharma
eca5d2dde4
Move makedirs to fs.py
2020-01-09 04:30:51 +05:30
pawel
36427387c0
get_mtime_and_size: move working tree assertion after veryfing dir
2020-01-03 10:32:32 +01:00
pawel
1e1a9cf774
tree: introduce is_working_tree
2020-01-03 10:03:47 +01:00
pawel
eb53c030c6
local-related methods should verify that WorkingTree is in use
2020-01-03 09:46:04 +01:00
Mr. Outis
fd82402d34
py3: use new magic from PEP 3135
2020-01-02 16:24:31 -06:00
Mr. Outis
6d36b85736
py3: remove string compat related code
2019-12-30 23:49:19 -06:00
Mr. Outis
94a0914bba
py3: get rid of future imports
2019-12-30 19:35:48 -06:00
pawel
e1eab9405c
tree: check that repo.tree is CleanTree when using walk_files
2019-12-30 14:19:43 +01:00
pawel
e225601031
reintroduce dvcignore collection test
2019-12-30 14:19:43 +01:00
pawel
d8c0ae6909
remove most occurences of dvc_walk
2019-12-30 14:19:43 +01:00
Wojciech Baranowski
c04f5a0f9d
import: allow downloading regular files/dirs tracked by git
...
Fixes #2862
2019-12-14 14:08:38 +02:00
Saugat Pachhai
58624e0230
utils/fs: use fspath_py35 instead of fspath
2019-11-19 21:55:01 +05:45
Saugat Pachhai
68c7366ef0
utils: implement path_isin to compare child and parent paths
2019-11-19 05:34:33 +05:45
Aman Sharma
d9cd9ece8b
Move _chmod to fs.py
2019-11-16 00:44:20 +05:30
Aman Sharma
636d850c84
Ensure remove accepts str and Path-like objects
2019-11-15 01:54:40 +05:30
Aman Sharma
9427bbe8d0
Move move to filesystem utility
2019-11-09 23:57:57 +05:30
Ruslan Kuprieiev
5e2fa3742b
Merge pull request #2741 from algomaster99/remove-get-parent-dirs
...
Remove `get_parent_dirs_up_to`
2019-11-05 23:01:31 +02:00
Aman Sharma
8491ddf43f
Remove get_parent_dirs_up_to
2019-11-06 02:03:47 +05:30
Aman Sharma
f642ff76a5
Ensure contains_symlink_up_to accept both str and Path-like objects
2019-11-06 00:24:10 +05:30
Ruslan Kuprieiev
95fe1578bb
dvc: automatically reorder imports
2019-11-05 02:34:40 +02:00
Aman Sharma
cffc9c8ed9
Remove unnecessary wrapping of path
2019-11-03 02:38:50 +05:30
Aman Sharma
f4f9f3aac1
Replace path with path_info
2019-11-02 01:15:17 +05:30
Paweł Redzyński and Ruslan Kuprieiev
393d926b74
state: use dvcignore when accessing metadata ( #2161 )
...
* state: use ignore file handler when accessing metadata
* fs: don't add dir size to overall size for dir
* ignore: use posix-like path on windows
* ignore: remove tree from dvc_walk arguments
* ignore: handle DvcIgnoreFilter creation outside of DVC repo
* ignore: throw on dvcignore file under output dir, but not dependency dir
* ignore: move ignore initialization to Repo init
* ignore: work in progress
* ignore: work in progress 2
* ignore: throw on .dvcignore upon collecting dir
* ignore: refactor
* ignore: loading upper level ignores in stages()
* Update dvc/repo/__init__.py
Co-Authored-By: Ruslan Kuprieiev <[email protected] >
* dvcignore review refactor
2019-07-12 11:50:22 +03:00
Ruslan Kuprieiev
bfdb990b3b
utils: dont use str() for dvc_walk
...
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-06-13 11:51:14 +03:00
pawel
012e045837
make get_mtime_and_size use single stat call for files
2019-05-29 16:47:13 -07:00
pared
c467ccebcb
ignore: introduce .dvcignore, apply when searching for stage files
2019-04-15 14:31:34 +02:00
Ruslan Kuprieiev
56b52cc9bf
checkout/remove: properly handle broken symlinks
...
Fixes #1856
Signed-off-by: Ruslan Kuprieiev <[email protected] >
2019-04-09 14:09:54 +03:00
Mr. Outis
85cd344152
logger: Use a more _pythonic_ logging
...
- Uses a formatter for coloring output
- Move the `progress_aware` decorator logic to the logger itself
- Refactor modules so each one uses their own instance of a logger
Close #1753
2019-04-06 18:19:32 -06:00
pared
f8ef28c4c6
stage: check if local path contains symlink and, if so, treat added files as relpath
2019-02-28 15:00:05 +01:00
pared
4464e29c15
remote local/state : add check for cache dir metadata changes
2019-02-25 18:35:02 +01:00