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

Method changed_cache

dvc/output.py:602–614  ·  view source on GitHub ↗
(self, filter_info=None)

Source from the content-addressed store, hash-verified

600 return self.hash_info != self.get_hash()
601
602 def changed_cache(self, filter_info=None):
603 if not self.use_cache or not self.hash_info:
604 return True
605
606 obj = self.get_obj(filter_info=filter_info)
607 if not obj:
608 return True
609
610 try:
611 ocheck(self.cache, obj)
612 return False
613 except (FileNotFoundError, ObjectFormatError):
614 return True
615
616 def changed_meta(self) -> bool:
617 if self.fs.version_aware and self.meta.version_id:

Callers 4

statusMethod · 0.95
outs_cachedMethod · 0.80
test_commit_forceFunction · 0.80
test_commit_with_depsFunction · 0.80

Calls 1

get_objMethod · 0.95

Tested by 2

test_commit_forceFunction · 0.64
test_commit_with_depsFunction · 0.64