Page kind: Reference
swarmops land-check#
Say what landing changes in order onto a ref would come to, writing nothing.
Each HEAD, with its first-parent chain since its merge base with the ref's head, is merged onto what the clean ones before it make, as land would land them one after another: clean, with the root tree its landed changeset would have and the paths it changes; replayed; nothing_to_land; or conflict, with the report land gives in E_CONFLICT. It takes no lock and writes nothing, and exits 0 whatever the outcomes. A HEAD not found, or a merge in a chain, fails the whole check as it fails a land.
- Group
write- Since
0.11.0- Mutates
- no
- Identity required
- no
- MCP tool
land_check- Envelope op
land_check- Exit codes
- 012
- Errors
- E_TOO_LARGEE_INVALID_ARG
Syntax#
swarmops land-check [OPTIONS] <HEAD>...Required arguments#
Syntax: <HEAD>.
The changes' heads, in the order they would land: 1 to 32.
Optional arguments#
The command also takes the global options.
Syntax: --onto <REF>.
Default: main.
The ref they would land on: main or a release ref (release/NAME).
Syntax: --max-conflict-bytes <N>.
Default: 32768.
The most bytes of hunk text each conflicting change's report carries, as land's.
Examples#
swarmops --repo [tmp]/store land-check [first] [second] [third]Show 77 more lines
"head":Exit code 0. Recorded by the CLI tests. A name in square brackets, such as [tmp] or [c1], stands for what differs from run to run: the test's temporary directory, an id, a time.
No recorded example yet.
Return information#
result is a LandCheckResp (swarmops schema LandCheckResp prints its JSON Schema).
| Field | Type | Required | Description |
|---|---|---|---|
items | array of LandCheckItemOut | yes | Each change's outcome, in the request's order. |
onto | string | yes | The target's head the changes were planned on: a land with expect_target set to it lands what the check found, or nothing. |
Envelope op: land_check.
Exit codes:
0: Success.1: The operation failed.2: The request or the command line is malformed.
Errors#
- E_TOO_LARGE (exit 1): The content is larger than the operation allows.
- E_INVALID_ARG (exit 2): A malformed argument or request, including a command-line usage error.
Any command that opens a store may also fail with a store error, such as E_NOT_A_REPO, E_IO or E_STORE_CORRUPT; a command line the grammar refuses is E_INVALID_ARG (exit 2).