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

Function warn_link_failures

dvc/repo/add.py:146–156  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

144
145@contextmanager
146def warn_link_failures() -> Iterator[list[str]]:
147 link_failures: list[str] = []
148 try:
149 yield link_failures
150 finally:
151 if link_failures:
152 msg = LINK_FAILURE_MESSAGE.format(
153 CacheLinkError.SUPPORT_LINK,
154 " ".join(link_failures),
155 )
156 ui.error_write(msg)
157
158
159def _add_transfer(

Callers 1

addFunction · 0.85

Calls 3

joinMethod · 0.80
error_writeMethod · 0.80
formatMethod · 0.45

Tested by

no test coverage detected