Add change kind to PatchSetCreatedEvent

Pass along an extra flag in the patchset-created hook to convey
the change kind.  This is also exposed in the PatchSetCreatedEvent
as the "kind" field.  Both follow the ChangeKind enum type, where a
change can be "REWORK", "NO_CODE_CHANGE", or "TRIVIAL_REBASE".

Bug: Issue 2634
Change-Id: Ie04d0282e42ab177810fafd857e90d21999cab28
This commit is contained in:
Doug Kelly
2014-05-15 11:54:44 -05:00
committed by Dave Borowitz
parent 310c4a16f2
commit 58ba20634f
6 changed files with 132 additions and 4 deletions

View File

@@ -14,6 +14,7 @@
package com.google.gerrit.server.events;
import com.google.gerrit.server.change.ChangeKind;
import com.google.gerrit.server.data.AccountAttribute;
import com.google.gerrit.server.data.ChangeAttribute;
import com.google.gerrit.server.data.PatchSetAttribute;
@@ -23,4 +24,5 @@ public class PatchSetCreatedEvent extends ChangeEvent {
public ChangeAttribute change;
public PatchSetAttribute patchSet;
public AccountAttribute uploader;
public ChangeKind kind;
}