`user@tin:/srv/mediawiki-staging$` `scap swat -h`
```
usage: scap swat [-h] [-p PICK [PICK ...]] [-b [BRANCH]-c CONF_FILE] [--no-shared-authsock]
[--changeid CHANGEID [CHANGEID ...]] [--search SEARCH-D <name>:<value>] [-v] [-e ENVIRONMENT]
[-c CONF_FILE] [--no-shared-authsock] [-D <name>:<value>]
[-v] [-e ENVIRONMENT]<sub-command> ...
scap swat: cherry -pick and deploy patches for mMediawiki swatSWAT.
optional arguments:
-h, --help show this help message and exit
global arguments:
-p PICK [PICK ...], --pick PICK [PICK ...]
cherry-pick patches to release branches
-b [BRANCH], --branch [BRANCH]
One or more branches to merge into. Default: active
wmf/branches.
--changeid CHANGEID [CHANGEID ...]
The ChangeId of a patch to merge.Although these arguments can be passed to all scap (sub-)commands,
--search SEARCH Search for patches using Gerrit query terms.not all commands are affected by every global argument.
-c CONF_FILE, --conf CONF_FILE
Path to configuration file
--no-shared-authsock Ignore any shared ssh-auth configuration
-D <name>:<value>, --define <name>:<value>
Set a configuration value
-v, --verbose Verbose output
-e ENVIRONMENT, --environment ENVIRONMENT
environment in which to execute scap
Usage Examples:swat sub-commands:
Mediawiki SWAT deployment helper.
<sub-command>
----------------merge scap swat
Query changes from gerrit and display the results:pick Cherry-pick one or more changes to all active wiki
branches.
revert revert a change in gerrit
search execute a gerrit query
show scap swat --search 'status:open' Display details about the given changeids
Usage Examples:
----------------
Query changes from gerrit and display the results:
scap swat search 'status:open'
Cherry-pick a patch to active deployment branches:
scap swat --pick 123456
scap swat pick 123456
Specify a specific branch target:
scap swat --pick 123456 --branch 1.28.0-wmf.1
Disscap swat pick 123456 --branch 1.28.0-wmf.1
Diplay detailed information about a change in Ggerrit:
scap swat --changeid 123456scap swat show 123456
Merge a patch
scap swat merge 123456
More info: https://wikitech.wikimedia.org/wiki/SWAT_deploys
```