gunk-dev/the-valley

naming.txt

sourceccb7354855a5main's published tip history
2.8 KiB
1
2A change is named by its full change id, by its handle — the shortest
3prefix of the id, four letters at least, that no other change recorded on
4origin shares, written <repo>:<handle> too, with this repository's name —
5or by its branch. A name written origin/<branch> is always
6a branch. A handle that is also a branch on origin is refused unless the
7change is on that branch. review, approve and rebase read a branch name,
8written either way, against every record on origin: when exactly one
9record's active version is on the branch, the name is that change, as if
10its id were given, and when more than one's is, the verb refuses and lists
11their ids. A change that has landed as any version — its head is on
12main's first-parent history with no merge above it, or the integrator's
13outcome record and verified transfer statement record that exact head
14landing — is skipped, unless its active version was made on that landing, so a branch can be used again once its change has
15landed. unready, withdraw and status read a branch the same way. A
16branch no record's active version is on is acted on as a branch. A
17change with a record is reviewed, approved and rebased at the
18head its active version records, never at its branch's tip: review shows
19that head and its [a]pprove approves it, and rebase and review's
20[r]eject refuse, naming both, when the branch's tip on origin is another
21commit. approve approves the head bound to it, wherever the branch is.
22[r]eject deletes the branch under a lease on the recorded head. approve,
23and rebase refuse a change whose record is not ready, naming its state,
24and review offers neither [a]pprove nor [r]eject for a change that is not
25ready when it shows it. approve and rebase read the record again just
26before they act, and again before approve files or rebase pushes, and
27refuse when the change is not ready. review reads the change again before
28its [a]pprove or [r]eject acts. When the change has moved since review
29showed it, returned to draft, withdrawn, given a new version or landed,
30review says so in one line and moves on, without asking again. rebase also refuses when the change's
31record has changed at all since it began, and approve when the head it
32approves is not a version's. A name that read as a plain branch is
33read again before approve files or rebase pushes. If it names a change by
34then, rebase refuses, and approve files only while the change is ready at
35the head it began with. An approval already past that last check can
36still file if the change is unreadied or withdrawn in the moment before
37its push; the integrator refuses to land it, since it lands no request
38that would bring a version of a change that is not ready, whatever the
39request is named.
40The integrator reads the records last just before it moves main, so a
41change paused in that moment can still land at the head the operator
42approved, and never at any other.