Overview
| Comment: | An upstream's attention item survives tend and goes when it is settled
Two faults in how upstream items were kept. suit tend removes a wardrobe's items without naming a kind, and that matched the item of an upstream with the same name, so a pending update was forgotten until someone ran suit upstreams. A remove with no kind now leaves upstream items alone. The item's text is unchanged and files written before this read as before. A machine that had taken an upstream kept its item after the update was accepted on another machine and synced here. After the working copy is updated, every upstream whose tip the tracked file upstreams/NAME records as accepted has its item removed; one still waiting keeps its item. With no upstream branch this costs one query. 26 new store cases: a wardrobe and an upstream of one name through take, tend and accept; a file in the old form; two machines; and the read, open and rename failures. 1473 unit checks, 620 shell cases, 994 store cases (was 968), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (43 minutes). 100% coverage in all 26 source files. No existing case was changed. |
|---|---|
| Timelines: | family | ancestors | descendants | both | trunk |
| Files: | files | file ages | folders |
| SHA3-256: |
db386ba414f68209d7f5033854642901 |
| User & Date: | dmestas on 2026-11-16 14:13:46.782 |
| Other Links: | manifest | tags |
Context
|
2026-11-16
| ||
| 18:00 |
An accepted upstream update can be undone, and merges use the recorded base
suit upstream NAME undo reverses the last accept by a new check-in on trunk. Every file that accept changed goes back to what it was, the record upstreams/NAME goes back to the check-in accepted before (or is removed), and the upstream is waiting for review again. History is not rewritten. A file edited on trunk since the accept is a conflict: the command lists it and changes nothing. Undo twice walks back two accepts. An undo is never followed by an automatic accept. The merge base for an upstream is now the branch check-in the record names, or trunk's first check-in when there is no record, and no longer what the library infers from ancestry. The dry run, the merge and suit's own check for deleted files all use that one base. Because of it: - the same update can be accepted again after an undo, and gives exactly the files it gave before; - a newer take accepted after an undo brings all of its content, not only its difference from the undone one; - after accept --mine, a later update that leaves the settled lines alone merges cleanly, where it could conflict again before. One that changes them again is a conflict, as it should be. A take no longer mistakes a file an undo brought back for one of the owner's own. The settle writer restores a file's mode as well as its bytes. Left: a record edited by hand to name a check-in that is not on the branch makes accept fall back to the library's common ancestor. 159 new store cases, among them the undo story both ways, undo across two machines, and undo in the fault sweep. 1473 unit checks, 620 shell cases, 1153 store cases (was 994), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (44 minutes). 100% coverage in all 26 source files. One existing line changed: the fault sweep's list gained undo. check-in: 2d73c831f4 user: dmestas tags: trunk | |
| 14:13 |
An upstream's attention item survives tend and goes when it is settled
Two faults in how upstream items were kept. suit tend removes a wardrobe's items without naming a kind, and that matched the item of an upstream with the same name, so a pending update was forgotten until someone ran suit upstreams. A remove with no kind now leaves upstream items alone. The item's text is unchanged and files written before this read as before. A machine that had taken an upstream kept its item after the update was accepted on another machine and synced here. After the working copy is updated, every upstream whose tip the tracked file upstreams/NAME records as accepted has its item removed; one still waiting keeps its item. With no upstream branch this costs one query. 26 new store cases: a wardrobe and an upstream of one name through take, tend and accept; a file in the old form; two machines; and the read, open and rename failures. 1473 unit checks, 620 shell cases, 994 store cases (was 968), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (43 minutes). 100% coverage in all 26 source files. No existing case was changed. check-in: db386ba414 user: dmestas tags: trunk | |
| 08:11 |
Phase 8c-1: an upstream is taken from a folder, reviewed, and merged
suit upstream NAME take FOLDER checks the upstream's files in on the branch upstream-NAME of the wardrobe that defines it, at INTO/ENTRY, with the comment upstream NAME at PIN. The check-in is built as a deck on a repository opened with no checkout, so the working copy is not touched. Its first parent is trunk's first check-in, so a later merge is three-way. Dot entries are skipped, links are refused, the lint runs, and a file that something else supplies is a clash. into is a new key, default skills; trust defaults to review. With trust = review the update waits: the attention file says so, suit upstreams lists each upstream as never taken, current, waiting for review or conflict, and suit upstream NAME diff lists what accept would add, change, remove or conflict on. suit upstream NAME accept merges the branch into trunk after a dry run. A conflict changes no file and writes no marker; --mine PATH and --theirs PATH settle one. With trust = auto a clean take is accepted at once. Every accept writes the tracked file upstreams/NAME, holding the hash and pin it accepted, into its merge check-in. So a merge that changes no other file can still be checked in, and keeping your version of the only conflict ends as current. The proof: a local fix to a taken file survives an update that changes another line, and an update that rewrites the same line waits as a conflict with trunk byte-identical to before. Limits, all in docs/upstreams.md. suit back after an accept refuses, as after any check-in, and no command undoes an accept. diff prints the list of files, not their text. After --mine, a later take that touches the same lines can conflict again, because the library leaves the merge parent off that check-in. Accept works only at trunk's tip. A wardrobe and an upstream of one name share an attention item. Fetching over the network is part two and is not built. 1473 unit checks (was 1431), 620 shell cases (was 612), 968 store cases (was 669), 846 placement cases and 378 project cases, under clang, under gcc 16, with no user name set, and under a strict umask, in one run of make gate (34 minutes). 100% coverage in all 26 source files. The speed budget still passes. No existing case was changed. check-in: 3cb21b0428 user: dmestas tags: trunk | |