{"draft":null,"from":22,"to":318,"files":[{"path":"client/src/lock.ts","added":4,"removed":3,"diff":"--- a/client/src/lock.ts\n+++ b/client/src/lock.ts\n@@ -8,7 +8,7 @@\n //\n // The lock is never there without its contents: they're written to a file of\n // the taker's own and linked into place, which fails if a lock exists\n-// (AVCS - Git Lessons). Its holder renews it every RENEW_MS, so a lock not\n+// already. Its holder renews it every RENEW_MS, so a lock not\n // renewed for LOCK_STALE_MS was left behind, whatever process now has its\n // id; a long record or sync is never taken over while it writes. Taking one\n // over goes through a rename aside, which only one process can win.\n@@ -17,6 +17,7 @@\n import { basename, join } from \"node:path\";\n import { UsageError } from \"./args.ts\";\n import { LOCK_FILE, LOCK_STALE_MS, type LockInfo } from \"./core.ts\";\n+import { fromEnv } from \"./env-names.ts\";\n import { writeFileAtomic } from \"./folder.ts\";\n import { stateDir } from \"./state-dir.ts\";\n \n@@ -142,8 +143,8 @@\n \tconst mine = held.get(root);\n \tif (mine) mine.depth++;\n \telse {\n-\t\t// AVCS_LOCK_WAIT_MS shortens the wait in tests.\n-\t\tconst until = Date.now() + (Number(process.env.AVCS_LOCK_WAIT_MS) || WAIT_MS);\n+\t\t// ABSO_LOCK_WAIT_MS shortens the wait in tests.\n+\t\tconst until = Date.now() + (Number(fromEnv(process.env, \"LOCK_WAIT_MS\")) || WAIT_MS);\n \t\tfor (;;) {\n \t\t\tconst got = take(root, what);\n \t\t\tif (got === \"no folder\") return fn(); // no .avcs/ yet (init): nothing to protect"}],"unmatched":[]}