gerrit/Documentation/cmd-test-submit-type.txt
Yuxuan 'fishy' Wang 61698b14e0 Use the new section title style in Asciidoctor.
We previous use the section title style like:

Section level 1
===============

Section level 2
---------------

Which have a problem in Asciidoctor that the number of "="s or "-"s must match
the number of characters in the header exactly, as a result it's easy to make
mistakes while changing the titles. Asciidoctor provides a better style like:

= Section level 1

== Section level 2

So we switched to this style.

Also fixed a bug in replace_macros.py, which will not cause any problem in the
old style.

Change-Id: I811dd7238735d98f662767c17086152cd69aea02
2013-12-20 12:55:51 -08:00

50 lines
1.2 KiB
Plaintext

= gerrit test-submit type
== NAME
gerrit test-submit type - Test prolog submit type with a chosen change.
== SYNOPSIS
--
'ssh' -p <port> <host> 'gerrit test-submit type'
[-s]
[--no-filters]
CHANGE
--
== DESCRIPTION
Provides a way to test prolog submit type.
== OPTIONS
-s::
Reads a rules.pl file from stdin instead of rules.pl in refs/meta/config.
--no-filters::
Don't run the submit_type_filter/2 from the parent projects of the specified change.
== ACCESS
Can be used by anyone that has permission to read the specified change.
== EXAMPLES
Test submit_type from stdin and return the submit type.
====
cat rules.pl | ssh -p 29418 review.example.com gerrit test-submit type -s I78f2c6673db24e4e92ed32f604c960dc952437d9
"MERGE_IF_NECESSARY"
====
Test the active submit_type from the refs/meta/config branch, ignoring filters in the project parents.
====
$ ssh -p 29418 review.example.com gerrit test-submit type I78f2c6673db24e4e92ed32f604c960dc952437d9 --no-filters
"MERGE_IF_NECESSARY"
====
== SCRIPTING
Can be used either interactively for testing new prolog submit type, or from a script to check the submit type of a change.
GERRIT
------
Part of link:index.html[Gerrit Code Review]
SEARCHBOX
---------