Add ability to deny uploading merge commits

Teaches gerrit to deny merge commits when using the default
+2 read access level. To allow merge commits to be uploaded,
permission must be explicitly granted via +3 read access.

Change-Id: Idb0625aebbe4b554fa25e81aedcce36e66b58d6d
Signed-off-by: Jay Soffian <jaysoffian@gmail.com>
This commit is contained in:
Jay Soffian
2011-03-01 09:31:03 -05:00
parent df12227ce1
commit 632060c4b9
7 changed files with 80 additions and 5 deletions

View File

@@ -205,7 +205,7 @@ public class SchemaCreatorTest extends TestCase {
} finally {
c.close();
}
assertValueRange(ApprovalCategory.READ, -1, 1, 2);
assertValueRange(ApprovalCategory.READ, -1, 1, 2, 3);
}
public void testCreateSchema_ApprovalCategory_Submit() throws OrmException {