Versions 8 to 318
Lines 25–39 at 318 (were 25–37 at 8)
3032
31−/** The space to read: --draft (where "shared" means shared), else the one this agent is in. */
33+/** The space to read: --draft (where "shared" means shared), else the one this agent is in (shared, in a folder with no agent). */
34− if (named === undefined) return { agent };
3739
Lines 88–94 at 318 (were 86–92 at 8)
89− ? `Your view holds ${what}: ${spaceName(answer.draft)} at version ${answer.version}, with your unpublished changes.${missing.size > 0 ? ` ${missing.size} of them ${missing.size === 1 ? "is" : "are"} missing from this folder (abso sync --full writes them).` : ""}`
91+ ? `Your view holds ${what}: ${spaceName(answer.draft)} at version ${answer.version}, with your unpushed changes.${missing.size > 0 ? ` ${missing.size} of them ${missing.size === 1 ? "is" : "are"} missing from this folder (abso pull --full writes them).` : ""}`
Lines 142–166 at 318 (were 140–145 at 8)
142144
145+ // --agent: someone else's draft, to review it. What they've recorded, not their folder; nothing here is recorded.
149+ throw new UsageError("--agent shows that agent's unpushed changes: abso diff [file...] --agent <name>");
153+ const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
157+ : `${other}'s recorded, unpushed changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
160+ json: { agent: other, draft: answer.draft, base: answer.base, files: d.json, unmatched: unmatched(files) },
163+
Lines 180–186 at 318 (were 159–165 at 8)
159180
162− "--draft goes with two versions (abso diff <from> <to>); abso diff alone shows your own unpublished changes",
183+ "--draft goes with two versions (abso diff <from> <to>); abso diff alone shows your own unpushed changes",
Lines 190–197 at 318 (were 169–176 at 8)
169190 const where = `${spaceName(answer.draft)}${answer.base === null ? "" : ` (on version ${answer.base})`}`;
172− ? `No unpublished changes${inPaths(only, "to")} in ${where}.`
173− : `Your unpublished changes${inPaths(only, "to")} in ${where}: ${totals(files)}.`;
Lines 235–241 at 318 (were 214–220 at 8)
217− return ` ${p}: no such file or folder here now (paths are relative to where you run avcs).`;
218239 return ` ${p === "" ? "the whole folder" : `${p}${isFolder(root, p) ? "/" : ""}`}: no changes there.`;
220241
Lines 288–294 at 318 (were 267–273 at 8)
269290 if (v.droppedIn !== undefined) out.push(` dropped in version ${v.droppedIn}: shared no longer has these changes`);
270− if (v.originalMessage !== undefined) out.push(` amended; first published as: ${v.originalMessage}`);
291+ if (v.originalMessage !== undefined) out.push(` amended; first pushed as: ${v.originalMessage}`);
273294
Lines 331–338 at 318 (were 310–315 at 8)
313336 // The server filters by one file; a folder (or the whole folder) is filtered here, from a longer log.
314337 const folder = path !== undefined && (path === "" || /[/]$/.test(typed!) || isFolder(root, path));
315338 // --since, --by and --count (#37, Reporter's progress reports) filter here, from a longer log.
Lines 354–360 at 318 (were 331–336 at 8)
Lines 409–474 at 318 (were 385–402 at 8)
385409 `${spaceName(answer.draft)} is at version ${answer.version}.${path === undefined ? "" : answer.versions.length === 0 ? ` No version changed ${named}.` : ` The versions that changed ${named}, newest first:`}`,
386410 ...(path !== undefined && answer.versions.length === 0 && !existsHere(root, path) ? [nothingAt(root, path)] : []),
388− `version ${v.version} by ${v.agent}, ${when(v.time)}${answer.draft === null ? ciMarkText(v.ci) : ""}: ${v.message}`,
412+ `version ${v.version} by ${byWhom(v)}, ${when(v.time)}${answer.draft === null ? ciMarkText(v.ci) : ""}: ${v.message}`,
389413 ` ${plural(v.files.length, "file")}: ${v.files.slice(0, LOG_FILES).join(", ")}${v.files.length > LOG_FILES ? `, and ${v.files.length - LOG_FILES} more` : ""}`,
394− if (path === undefined && !filtering && oldest !== undefined && oldest.version > 0)
395− lines.push(`Older versions: abso log -n ${answer.versions.length + 50}`);
419+ lines.push(`Older versions: abso log${typed === undefined ? "" : ` ${typed}`} --before ${oldest.version}`);
421+ // A filter or a folder reads the newest FOLDER_LOG versions; say so when older ones were left unread.
424+ `Only the newest ${FOLDER_LOG} versions${before === undefined ? "" : ` below ${before}`} were read; --before ${raw.next} reads older ones.`,
399428
429+/** abso show <version>[:<file>] --without <versions>: what differs with them left out, or that file then. */
438+ if ("draft" in where && where.draft !== null) throw new UsageError("--without reads shared, not a named draft");
453+ if (same.text !== null) return { text: same.text, json: { ...same, without: answer.without } };
454+ } else if (file.after !== null) return { text: file.after, json: { ...file, without: answer.without } };
465+ changed.length === 0 ? `No file differs from version ${v}.` : `Compared with version ${v}: ${totals(changed)}.`,
471+
402474 throw new UsageError("show takes one version: abso show <version> or abso show <version>:<file>");
Lines 476–483 at 318 (were 404–409 at 8)
407481
Lines 496–502 at 318 (were 422–428 at 8)
425− `version ${answer.version} of ${spaceName(answer.draft)} by ${answer.agent}, ${when(answer.time)}: ${answer.message}`,
499+ `version ${answer.version} of ${spaceName(answer.draft)} by ${byWhom(answer)}, ${when(answer.time)}: ${answer.message}`,
Lines 507–513 at 318 (were 433–439 at 8)
436− * base; the other hunks stay (#37, Builder 2: drop my copy of a teammate's
Lines 563–569 at 318 (were 489–495 at 8)
492− // Some lines of a file: put those hunks back here, then record the file (#37, Builder 2).
Lines 644–655 at 318 (were 570–581 at 8)
573− ? "Nothing to restore: no unpublished changes there."
574− : `Discarded your unpublished changes to ${plural(restored.length + deleted.length, "file")}:`,
578− ? [`No unpublished changes to: ${untouched.join(", ")}`]
- MCP
- compare on this site's /mcp
- CLI
- abso diff 8 318 client/src/changes.ts --json
- JSON
- /christopher/abso-core/compare/8..318?file=client%2Fsrc%2Fchanges.ts&format=json