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

Method replace

dvc/testing/path_info.py:178–179  ·  view source on GitHub ↗
(self, path=None)

Source from the content-addressed store, hash-verified

176 return self._base_parts + self._path.parts
177
178 def replace(self, path=None):
179 return self.from_parts(*self._base_parts, path=path) # type: ignore[misc]
180
181 @cached_property
182 def url(self) -> str:

Callers 15

__div__Method · 0.95
joinpathMethod · 0.95
parentMethod · 0.95
_resolveMethod · 0.45
atomic_fileFunction · 0.45
closeMethod · 0.45
__init__Method · 0.45
make_relpathFunction · 0.45
as_posixFunction · 0.45
parse_targetFunction · 0.45
_update_linesFunction · 0.45
get_definition_dataMethod · 0.45

Calls 1

from_partsMethod · 0.95

Tested by 10

extract_vega_specsFunction · 0.36
verify_imageFunction · 0.36
_remove_blanksFunction · 0.36
_assert_templates_equalFunction · 0.36
test_diff_rename_folderFunction · 0.36
test_diff_rename_fileFunction · 0.36
_dos2unixFunction · 0.36
test_hook_is_calledFunction · 0.36