-
Notifications
You must be signed in to change notification settings - Fork 1.3k
Closed
Labels
enhancementEnhances DVCEnhances DVCp2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less importantperformanceimprovement over resource / time consuming tasksimprovement over resource / time consuming tasks
Description
dvc import https://some/git/repo/ some_file
should probably do a sparse checkout.
Currently looks like it does a full clone:
Line 941 in 05cc023
self.deps[0].download(self.outs[0]) |
Lines 73 to 81 in 05cc023
def download(self, to): | |
with self._make_repo() as repo: | |
if self.def_repo.get(self.PARAM_REV_LOCK) is None: | |
self.def_repo[self.PARAM_REV_LOCK] = repo.scm.get_rev() | |
if hasattr(repo, "cache"): | |
repo.cache.local.cache_dir = self.repo.cache.local.cache_dir | |
repo.pull_to(self.def_path, to.path_info) |
On a related note, is the repo locally cached by default
Lines 78 to 79 in 05cc023
if hasattr(repo, "cache"): | |
repo.cache.local.cache_dir = self.repo.cache.local.cache_dir |
dvc update
won't re-clone?Metadata
Metadata
Assignees
Labels
enhancementEnhances DVCEnhances DVCp2-mediumMedium priority, should be done, but less importantMedium priority, should be done, but less importantperformanceimprovement over resource / time consuming tasksimprovement over resource / time consuming tasks