Commit Graph

3 Commits

Author SHA1 Message Date
Martin von Zweigbergk
0ea94d07f4 gerrit: fix a misplaced comment in test 2025-09-19 07:06:04 +00:00
Matt Stark
1a4a74f7a0 gerrit: Fix bug where only the head commit would get a Change-Id 2025-09-19 00:45:03 +00:00
Austin Seipp
35ad063b85 cli: basic jj gerrit upload implementation
This implements the most basic workflow for submitting changes to Gerrit,
through a verb called 'upload'. This verb is chosen to match the gerrit
documentation (https://gerrit-documentation.storage.googleapis.com/Documentation/3.12.1/user-upload.html).

Given a list of revsets (specified by multiple `-r` options), this will parse
the footers of every commit, collect them, insert a `Change-Id` based off the jj change-id (if one doesn't already exist), and then push them into the given remote.
It will then abandon the transaction, thus ensuring that gerrit change-IDs do not appear in jj.

Because the argument is a revset, you may submit entire trees of changes at
once, including multiple trees of independent changes, e.g.

    jj gerrit upload -r foo:: -r baz::

Signed-off-by: Austin Seipp <aseipp@pobox.com>
2025-09-16 02:15:09 +00:00