Merge pull request #2306 from efiop/2252

import: only download specific output
This commit is contained in:
Ruslan Kuprieiev
2019-07-22 15:55:16 +03:00
committed by GitHub
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -68,7 +68,8 @@ class DependencyREPO(DependencyLOCAL):
self.def_repo[self.PARAM_REV_LOCK] = repo.scm.get_rev()
out = repo.find_out_by_relpath(self.def_path)
repo.fetch(out.stage.path)
with repo.state:
repo.cloud.pull(out.get_used_cache())
to.info = copy.copy(out.info)
to.checkout()
+2 -1
View File
@@ -36,7 +36,8 @@ def get(url, path, out=None, rev=None):
"reflink,hardlink,copy",
)
o = repo.find_out_by_relpath(path)
repo.fetch(o.stage.path)
with repo.state:
repo.cloud.pull(o.get_used_cache())
o.path_info = PathInfo(os.path.abspath(out))
with o.repo.state:
o.checkout()