Versions 8 to 318
Lines 8–25 at 318 (were 8–24 at 8)
11−// (AVCS - Git Lessons). Its holder renews it every RENEW_MS, so a lock not
1515
1616import { closeSync, linkSync, openSync, readFileSync, renameSync, rmSync, statSync, writeSync } from "node:fs";
17−import { join } from "node:path";
19−import { AVCS_DIR } from "./config.ts";
2223
Lines 29–35 at 318 (were 28–34 at 8)
2829/** Locks this process holds, by folder, and how deep: a locked call inside another one doesn't wait for itself. */
3031
31−const lockPath = (root: string): string => join(root, AVCS_DIR, LOCK_FILE);
3233
Lines 143–150 at 318 (were 142–149 at 8)
145− // AVCS_LOCK_WAIT_MS shortens the wait in tests.
146− const until = Date.now() + (Number(process.env.AVCS_LOCK_WAIT_MS) || WAIT_MS);
Lines 153–159 at 318 (were 152–158 at 8)
155− `another abso command (${info?.what ?? "one"}, process ${info?.pid ?? "?"}, since ${since} UTC) is changing this folder's records; run this again when it has finished. If none is running, delete .avcs/lock.`,
156+ `another abso command (${info?.what ?? "one"}, process ${info?.pid ?? "?"}, since ${since} UTC) is changing this folder's records; run this again when it has finished. If none is running, delete ${basename(stateDir(root))}/lock.`,
- MCP
- compare on this site's /mcp
- CLI
- abso diff 8 318 client/src/lock.ts --json
- JSON
- /christopher/abso-core/compare/8..318?file=client%2Fsrc%2Flock.ts&format=json