Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 1 | = gerrit test-submit type |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 2 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 3 | == NAME |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 4 | gerrit test-submit type - Test prolog submit type with a chosen change. |
| 5 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 6 | == SYNOPSIS |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 7 | -- |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 8 | 'ssh' -p <port> <host> 'gerrit test-submit type' |
| 9 | [-s] |
| 10 | [--no-filters] |
| 11 | CHANGE |
Yuxuan 'fishy' Wang | d85b687 | 2013-11-15 11:47:46 -0800 | [diff] [blame] | 12 | -- |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 13 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 14 | == DESCRIPTION |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 15 | Provides a way to test prolog submit type. |
| 16 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 17 | == OPTIONS |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 18 | -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' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 24 | == ACCESS |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 25 | Can be used by anyone that has permission to read the specified change. |
| 26 | |
Yuxuan 'fishy' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 27 | == EXAMPLES |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 28 | |
| 29 | Test 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 | |
| 35 | Test 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' Wang | 61698b1 | 2013-12-20 12:55:51 -0800 | [diff] [blame] | 41 | == SCRIPTING |
Edwin Kempin | 48a9e0d | 2013-03-26 10:41:46 +0100 | [diff] [blame] | 42 | Can be used either interactively for testing new prolog submit type, or from a script to check the submit type of a change. |
| 43 | |
| 44 | GERRIT |
| 45 | ------ |
| 46 | Part of link:index.html[Gerrit Code Review] |
Yuxuan 'fishy' Wang | 99cb68d | 2013-10-31 17:26:00 -0700 | [diff] [blame] | 47 | |
| 48 | SEARCHBOX |
| 49 | --------- |