summaries_to_records
summaries_to_records(
summaries: list[PatchSummary] ,
base_uri: str | None[str, None] = None,
relative_to: str | None[str, None] = None,
mtimes_ns: dict[dict[str, int], None] = None,
sizes_bytes: dict[dict[str, int], None] = None,
)-> ‘list[SourceRecord]’
Group patch summaries by source and convert to SourceRecords.
Parameters
| Parameter | Description |
|---|---|
| summaries |
Patch summaries, e.g. from dc.scan.
|
| base_uri |
Optional common root persisted with each source (remote spools); source paths are stored relative to it. |
| relative_to |
Optional local spool root: source paths are stored relative to it but the root itself is not persisted (local directory spools resolve against their current root, per the design doc). |
| mtimes_ns, sizes_bytes |
Optional maps of source_path -> stat values. When omitted the caller is responsible for change detection. |