Skip to content
quarry View Ticket
Login

View Ticket

Propose-a-landing is offered for a branch whose work already landed

Closedab4b4f60e49b386e62759e356b01e3592686ae3eCreated 87.5 days agoUpdated 67.9 days ago
Description2026-09-04 12:36:42
The check-in page offers `Propose <branch>` at a branch tip, and the Landings page lists branches nobody has proposed. Both ask four questions: is this the tip, is it not the target, is the branch open, does no open landing name it.

They do NOT ask whether the work is already in the target. Landing a branch normally closes it, so the closed test covers the usual case — but a branch landed and left OPEN still gets the offer, and accepting it opens a landing that immediately renders `merges up-to-date`. An empty landing in the queue, and a wasted trip.

The honest test is a merge probe (`MergeProbe(branchTip, targetTip)`, already used to compute a landing`s mergeable state) — but that is a zit subprocess, and this is on a page-view path, so it must stay behind the four cheap questions rather than replace them. `branch.unproposed` runs the same logic for the list and can afford it more easily, since it answers once per page rather than once per check-in.

Rare, and cheap to spot when it happens: the landing says up-to-date on arrival.

2026-09-12 17:49:09

Closed by landed-offer landing on trunk (accepted)