Answer prose round 1: 0 🔴, 9 🟡 (0 misread); each 🟡 and 🟢 rewritten as the report asks, items 392 and 393 included, and item 300's quoted places left for its next refresh
This commit is contained in:
@@ -101,7 +101,7 @@ def held_at(revision: str, record: RecordStore, cwd: str, run: Git = git) -> str
|
||||
|
||||
|
||||
def local_file(record: RecordStore, copy: pathlib.Path) -> pathlib.Path | Failure:
|
||||
"""A file holding record's text, for an agent, which reads and edits files: the record's own file where a file is its backend, else copy, written with the text as it stands, and its version beside it, for `stored`, a later process, to write over. Neither exists where the record doesn't yet. `stored` puts an edited copy back."""
|
||||
"""A file holding record's text, for an agent, which reads and edits files: the record's own file where a file is its backend, else copy, written with the text as it stands, and its version beside it, for `stored` to write over in a later process. Neither exists where the record doesn't yet. `stored` puts an edited copy back."""
|
||||
if isinstance(record, FileStore):
|
||||
return record.path
|
||||
held = record.held()
|
||||
@@ -117,7 +117,7 @@ def local_file(record: RecordStore, copy: pathlib.Path) -> pathlib.Path | Failur
|
||||
copy.unlink(missing_ok=True)
|
||||
except OSError as failure:
|
||||
return Failure(f"cannot remove {copy}: {failure.strerror}")
|
||||
# Kept only once the copy holds the text: a version kept for a read that failed would let a later save overwrite the save it saw.
|
||||
# Kept only once the copy holds the text: a newer version beside an older copy would let a later save overwrite the edit that version holds.
|
||||
return kept(copy, held.version) or copy
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user