mirror of
https://github.com/Stone-Red-Code/dvc.git
synced 2026-11-12 15:28:21 +01:00
scm: remove ignore list
This commit is contained in:
committed by
Ruslan Kuprieiev
parent
318b269ad1
commit
b84227db89
@@ -368,7 +368,8 @@ class Repo:
|
||||
if path_isin(self.odb.local.cache_dir, self.root_dir):
|
||||
flist += [self.odb.local.cache_dir]
|
||||
|
||||
self.scm.ignore_list(flist)
|
||||
for file in flist:
|
||||
self.scm_context.ignore(file)
|
||||
|
||||
def brancher(self, *args, **kwargs):
|
||||
from dvc.repo.brancher import brancher
|
||||
|
||||
@@ -99,10 +99,6 @@ class Base:
|
||||
def ignore_file(self):
|
||||
"""Filename for a file that contains ignored paths for this SCM."""
|
||||
|
||||
def ignore_list(self, p_list):
|
||||
"""Makes SCM ignore all paths specified in a list."""
|
||||
return [self.ignore(path) for path in p_list]
|
||||
|
||||
def add(self, paths):
|
||||
"""Makes SCM track every path from a specified list of paths."""
|
||||
|
||||
|
||||
@@ -200,7 +200,7 @@ def test_dumpd(dvc):
|
||||
|
||||
|
||||
def test_unique_identifier(tmp_dir, dvc, scm, run_copy):
|
||||
dvc.config["core"]["autostage"] = True
|
||||
dvc.scm_context.autostage = True
|
||||
tmp_dir.dvc_gen("foo", "foo")
|
||||
run_copy("foo", "bar", name="copy-foo-bar")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user