blob: 48e5e750f54a77f5ffc929c49af2ebec56d8a340 [file] [log] [blame]
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08001= gerrit test-submit type
Edwin Kempin48a9e0d2013-03-26 10:41:46 +01002
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08003== NAME
Edwin Kempin48a9e0d2013-03-26 10:41:46 +01004gerrit test-submit type - Test prolog submit type with a chosen change.
5
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -08006== SYNOPSIS
Michael Ochmanne2d76a12016-06-23 17:07:37 +02007[verse]
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08008--
Michael Ochmanne2d76a12016-06-23 17:07:37 +02009_ssh_ -p <port> <host> _gerrit test-submit_ type
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010010 [-s]
11 [--no-filters]
12 CHANGE
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080013--
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010014
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080015== DESCRIPTION
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010016Provides a way to test prolog submit type.
17
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080018== OPTIONS
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010019-s::
20 Reads a rules.pl file from stdin instead of rules.pl in refs/meta/config.
21
22--no-filters::
23 Don't run the submit_type_filter/2 from the parent projects of the specified change.
24
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080025== ACCESS
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010026Can be used by anyone that has permission to read the specified change.
27
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080028== EXAMPLES
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010029
30Test submit_type from stdin and return the submit type.
Michael Ochmannb99feab2016-07-06 14:10:22 +020031----
David Shevitzc47f2362018-09-27 10:55:35 -070032cat rules.pl | ssh -p 29418 review.example.com gerrit test-submit type -s I78f2c6673db24e4e92ed32f604c960dc952437d9
33"MERGE_IF_NECESSARY"
Michael Ochmannb99feab2016-07-06 14:10:22 +020034----
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010035
36Test the active submit_type from the refs/meta/config branch, ignoring filters in the project parents.
Michael Ochmannb99feab2016-07-06 14:10:22 +020037----
David Shevitzc47f2362018-09-27 10:55:35 -070038$ ssh -p 29418 review.example.com gerrit test-submit type I78f2c6673db24e4e92ed32f604c960dc952437d9 --no-filters
39"MERGE_IF_NECESSARY"
Michael Ochmannb99feab2016-07-06 14:10:22 +020040----
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010041
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080042== SCRIPTING
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010043Can be used either interactively for testing new prolog submit type, or from a script to check the submit type of a change.
44
45GERRIT
46------
47Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070048
49SEARCHBOX
50---------