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

Method drop_data_index

dvc/repo/__init__.py:375–383  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

373 return self._data_index
374
375 def drop_data_index(self) -> None:
376 for key in self.data_index.ls((), detail=False):
377 try:
378 self.data_index.delete_node(key)
379 except KeyError:
380 pass
381 self.data_index.commit()
382 self.data_index.close()
383 self._reset()
384
385 def get_data_index_entry(
386 self,

Callers 3

pushFunction · 0.80
fetchFunction · 0.80
test_diff_no_cacheFunction · 0.80

Calls 4

_resetMethod · 0.95
lsMethod · 0.45
commitMethod · 0.45
closeMethod · 0.45

Tested by 1

test_diff_no_cacheFunction · 0.64