MCPcopy
hub / github.com/treeverse/dvc / func

Method func

dvc/repo/__init__.py:557–565  ·  view source on GitHub ↗
(out)

Source from the content-addressed store, hash-verified

555 fs_path = abs_path
556
557 def func(out):
558 def eq(one, two):
559 return one == two
560
561 match = eq if strict else out.fs.isin_or_eq
562
563 if out.protocol == "local" and match(fs_path, out.fs_path):
564 return True
565 return recursive and out.fs.isin(out.fs_path, fs_path)
566
567 matched = list(filter(func, outs))
568 if not matched:

Callers 15

mainFunction · 0.80
test_argparseFunction · 0.80
test_pullFunction · 0.80
test_pushFunction · 0.80
test_statusFunction · 0.80
test_reproFunction · 0.80
test_removeFunction · 0.80
test_addFunction · 0.80
test_config_unsetFunction · 0.80
test_checkoutFunction · 0.80
test_checkoutFunction · 0.80
test_importFunction · 0.80

Calls 1

isinMethod · 0.45

Tested by 15

test_argparseFunction · 0.64
test_pullFunction · 0.64
test_pushFunction · 0.64
test_statusFunction · 0.64
test_reproFunction · 0.64
test_removeFunction · 0.64
test_addFunction · 0.64
test_config_unsetFunction · 0.64
test_checkoutFunction · 0.64
test_checkoutFunction · 0.64
test_importFunction · 0.64
test_import_no_execFunction · 0.64