Versions 142 to 143
Lines 1–9 at 143 (were 1–8 at 142)
12// Each version's files and shape, and each path's history in a space (#41; #46, disk-first 1). Built the first
23// time it's asked for and kept up as versions land; a version's files are also kept in the shapes table, so a
45
5−import { type AtomId, type Graph, type LineId, View } from "../../src/engine/index.ts";
Lines 18–25 at 143 (were 17–24 at 142)
20− viewAt(space: Space, version: number): View;
21− touchedFiles(ids: Iterable<AtomId>, views: readonly View[]): Set<string>;
2425
Lines 45–51 at 143 (were 44–50 at 142)
4546
4647 /** The files a version changed. `views` holds views by version, so a run of versions builds each once. */
47− versionFiles(space: Space, version: number, views = new Map<number, View>()): string[] {
Lines 54–60 at 143 (were 53–59 at 142)
56− const viewAt = (v: number): View => {
5859 if (!view) views.set(v, (view = v < 0 ? new View(this.#deps.graph, []) : this.#deps.viewAt(space, v)));
Lines 108–114 at 143 (were 107–113 at 142)
108109
110− versionShape(space: Space, version: number, views?: Map<number, View>): VersionShape {
Lines 125–131 at 143 (were 124–130 at 142)
127− const views = new Map<number, View>();
128129 // Shared's sets grow version by version, so walk them forward rather than build each from the
129130 // start; the views stay out of the cache, which they would only push other views from. A version
- MCP
- compare on this site's /mcp
- CLI
- abso diff 142 143 worker/project/pathindex.ts --json
- JSON
- /christopher/abso-core/compare/142..143?file=worker%2Fproject%2Fpathindex.ts&format=json