Add oldObjectId and newObjectId to the GitReferenceUpdatedListener.Update
This is a first step towards creation of the "reviewnotes" plugin and removing this code from the Gerrit core. The reviewnotes plugin will listen on GitReferenceUpdated and will need old and new values in order to know which commits become part of the changed refs history. Change-Id: If5f3598adb209a9b473c5ea4a07bf8a95f838139 Signed-off-by: Sasa Zivkov <sasa.zivkov@sap.com>
This commit is contained in:

committed by
Edwin Kempin

parent
57462b7766
commit
c21f309f71
@@ -337,7 +337,7 @@ public class SubmoduleOp {
|
||||
switch (rfu.update()) {
|
||||
case NEW:
|
||||
case FAST_FORWARD:
|
||||
replication.fire(subscriber.getParentKey(), rfu.getName());
|
||||
replication.fire(subscriber.getParentKey(), rfu);
|
||||
// TODO since this is performed "in the background" no mail will be
|
||||
// sent to inform users about the updated branch
|
||||
break;
|
||||
|
Reference in New Issue
Block a user