summaryrefslogtreecommitdiff
path: root/test/process/tty_editing.zig
diff options
context:
space:
mode:
authorGabriel Schneider <[email protected]>2026-11-23 13:12:37 -0300
committerGabriel Schneider <[email protected]>2026-11-23 15:09:24 -0300
commit5296843dd27297bee3cbcf123426a9de17b33dfb (patch)
tree6a9dc2abc8096ea79f33d9083e93f4a4dc02850e /test/process/tty_editing.zig
parent62c6caf414fd5a2be556f76eb21d1d6d8d3beadb (diff)
downloadpardes-5296843dd27297bee3cbcf123426a9de17b33dfb.tar.gz
pardes-5296843dd27297bee3cbcf123426a9de17b33dfb.zip
changes layer: `Compare <rev> <rev> [<rev> ...]`, the user's three-way view compressed: between each two consecutive points of the history ONE change, the file's whole difference between them however many commits lie between (the user, 2026-11-23, of `Changes (9ef..ea6) | (ea6..master@origin)`'s six lanes on cpi.rs: "they should be compressed so its only two changes"), each a pin of the layer as a commit is, so every part of the layer and what round 8 does to pins serves it with no second implementation: TESTS FIRST (core/jj.zig, a throwaway jj repository, the pane's surface, terminal and window): three points on one line of history (`Compare @----- @--- @-` over five commits) are two pins, each pair's row `from..to 2 changes day` after its last line, who wrote each line (b2 the first pair, d2 and e the second), the rows as the view shows them with the lines each took away where they stood and no number on the layer's, each pair's lane its own colour, `]g`, bare `Compare` hiding and showing the set without asking jj, `Changes` after it replacing it and it `Changes`'; two points neither the other's ancestor (two branches: `1 change, 1 undone`, each changed line's old text above it, the patch's `+` and `-` lines); a revision's pane at the middle point (`At @---`: the first pair behind, as at the last; the second drawn as round 7 draws a change ahead, as behind it: the test's want is marked for round 8's merge); one point, bare with nothing pinned, a point naming two commits (jj's words, `more than one revision`) and an unknown one refused, nothing pinned; a B3 on a pair's row's first word opening its patch (`Compare from..to`, the changes between newest first each signed, the hunks, the cursor on the pair's last line, typed the same); a client replaying it equal and its pairs crossing a join whole (`loadsAsSession`); on a worker, the word returning at once and the answer landing as one input; each failing on the base (no word `Compare`); THE CHANGE: the struct `Ask` (its `Kind` gains `compare`, and `word`, each kind's name in its notices: a rename is that line and the builtin's) and two functions, `answer` (one line: a Compare's runs are `pairsAnswer`'s) and `parse` (one line: who wrote each line from the pairs' hunks, `pairOwners`, where a Changes reads jj's annotation); `pairsAnswer`/`pairRuns` answer in the shape a `Changes` gets: the clock, for each pair an entry line as `logTemplate` writes one (its id the first point's change, its title the pair's row from one `jj log` a pair: `f`/`t` the points, `+` a change in the second not the first, `-` the other way, the author's day) then `jj diff --from --to --git --context=0 -- FILE` (an empty difference: an entry not pinned), then from the last point to the revision shown an entry not pinned whose hunks carry the places (`carried`, unchanged), and jj's text of the revision shown (`jj file show`, lined up with the pane's as the annotation's text is); `pairOwners` walks that text back through the steps' hunks, the newest step a line's (a carrier's nobody's), and `provenance`'s last lines are `linedUp`, shared; `describe` gives a pair its row (`isPair`: a title starting with its id and `..`), `lookGhost` passes a pair row's first word whole (`Diff from..to path:line`), `diffPair` (hunks.zig's `Diff` before `diffChange`) is that patch: `jj diff --from --to --git [-- path]` under `Compare from..to` and the changes between (no plumbing rule for `x..y`: a `matches` rule compiles its regexp at every plumb, and an open plumbs: it cost every open about 9,100 instructions in the perf gate, so a Look on `from..to` in running text searches), `standAt` is `diffChange`'s cursor placing, shared; `changesWord`'s body is `pinWord(kind)` for both words (bare as bare Changes; fewer than two points refused in words), `ask`/`receive`/`pinAnswer` name the kind's word; config.zig `Compare` has no leader path (it needs its points); builtins.zig, both builtins lists; NOT TOUCHED: `File.fillBody`, the ghosts' geometry, `ghostsOf`, `carried`, `nest`, `hunksOf`, the paint; nothing new in any replicated struct (a pair is a `Pin`, its row in `ghost_text`, its points in `Changes.revset`, all made by `parse` in every process from the one input): wire 31; THE GATE (ws-svc, loads 2-8): tui core-test 943/1109 (166 skipped) and shell-test 1151/1154 (3 skipped) in Debug and in ReleaseSafe (the base, my first run: 936/1102 and 1144/1147; ReleaseSafe run under bin/sig: from a background chain without it the four host_io Ctrl-C tests fail, as the rules say), behaviour-test and --replay 276/276 (20 seeds, 0 failures), test/daemon.py plain and --clients on the Debug install, the user's case run (agave's cpi.rs, `Compare 9ef6312813 ea63317630 master@origin`: two lanes, rows `ozlwptts..pyquzokk 4 changes, 1 undone 2026-09-25..2026-11-03` and `pyquzokk..rmrksrzs 2 changes 2026-11-05..2026-11-09`, jj's answer on the worker in 1.5 s, agave's operation log untouched); the frame and perf gate against tree6 (gpu/cmp1-g2): 77/77 frames, gui unit-test 1748/1752 (no failure the base has not), perfab corpus2x +0.022% (noise 0.044%), perfops 33 of 121 over against tree6, exactly the base line's own 33 (the coordinator's gpu/merge63-g: body-appends +12.026%/+8.068%), and against that gate's candidate all 121 within 0.1% (largest client-key-down small +0.037%)
Co-Authored-By: Claude Opus <[email protected]> Claude-Session: https://claude.ai/code/session_016Y9MNBECMWcJD5pdS4SR6T
Diffstat (limited to 'test/process/tty_editing.zig')
0 files changed, 0 insertions, 0 deletions