scm: remove ignore list

This commit is contained in:
Saugat Pachhai (सौगात)
2021-11-22 07:16:54 +02:00
committed by Ruslan Kuprieiev
parent 318b269ad1
commit b84227db89
3 changed files with 3 additions and 6 deletions
+2 -1
View File
@@ -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
-4
View File
@@ -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."""
+1 -1
View File
@@ -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")