Upload local changes to the Mergin Maps server as ONE version. Wraps
mergin push from the mergin-client CLI. Always rfp_mergin_pull() first
to avoid conflicts, or use rfp_mergin_sync(), which pulls and pushes until
nothing is left.
Value
Invisible character - the new project version (e.g., "v123"), or
the unchanged local version when there was nothing to push. The raw push
output is available as attr(result, "output").
Details
The client uploads at most 100 added and updated files per version. When
more are pending, this pushes the first batch, returns the version that
landed, and raises a catchable warning() naming how many changes remain
(#399). rfp_mergin_sync() uploads them all.
The CLI exits 0 when a push fails, so neither the exit code nor its output is the verdict. A version is returned only when the client logged it for this push, or when the server and the local metadata show it landed. Every other outcome is an error carrying the output tail (#88): a push the server did not record, a version that landed while the local metadata stayed behind, a local version written alongside a failure (the client writes it before applying the push to its base files), a project the server no longer has, or a server that cannot be asked. A CLI that crashed or was killed goes through the same check.
