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