Module revisions
Expand description
revisions analysis — file → revision count.
Code-maat parity output: (entity, n-revs).
See spec §1.1 (“authors and revisions are addressable standalone”).
Research basis: see docs/research-foundations.md entry “revisions”
(Nagappan & Ball, ICSE 2005 — relative churn predicts defect density).
Constants§
- SQL_RAW
- Per-file revision count, gated on
--min-revsand capped by--rows. Bound values:min_revs,row_limit(i64::MAX= unlimited).
Functions§
- build_
inlined_ sql - Returns the revisions SQL with
?placeholders inlined and the source table swapped in. Used by the Parquet writer (DuckDB COPYcan’t accept bind parameters). Sharing the formula with the liverun_revisionspath eliminates silent-drift risk. - run_
revisions