blob: 658d43bdccee79857aa1519a02d55e71c9e8bb3a [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
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -08007--
Edwin Kempin48a9e0d2013-03-26 10:41:46 +01008'ssh' -p <port> <host> 'gerrit test-submit type'
9 [-s]
10 [--no-filters]
11 CHANGE
Yuxuan 'fishy' Wangd85b6872013-11-15 11:47:46 -080012--
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010013
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080014== DESCRIPTION
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010015Provides a way to test prolog submit type.
16
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080017== OPTIONS
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010018-s::
19 Reads a rules.pl file from stdin instead of rules.pl in refs/meta/config.
20
21--no-filters::
22 Don't run the submit_type_filter/2 from the parent projects of the specified change.
23
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080024== ACCESS
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010025Can be used by anyone that has permission to read the specified change.
26
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080027== EXAMPLES
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010028
29Test submit_type from stdin and return the submit type.
30====
31 cat rules.pl | ssh -p 29418 review.example.com gerrit test-submit type -s I78f2c6673db24e4e92ed32f604c960dc952437d9
32 "MERGE_IF_NECESSARY"
33====
34
35Test the active submit_type from the refs/meta/config branch, ignoring filters in the project parents.
36====
37 $ ssh -p 29418 review.example.com gerrit test-submit type I78f2c6673db24e4e92ed32f604c960dc952437d9 --no-filters
38 "MERGE_IF_NECESSARY"
39====
40
Yuxuan 'fishy' Wang61698b12013-12-20 12:55:51 -080041== SCRIPTING
Edwin Kempin48a9e0d2013-03-26 10:41:46 +010042Can be used either interactively for testing new prolog submit type, or from a script to check the submit type of a change.
43
44GERRIT
45------
46Part of link:index.html[Gerrit Code Review]
Yuxuan 'fishy' Wang99cb68d2013-10-31 17:26:00 -070047
48SEARCHBOX
49---------