Merge changes from topics 'mergeop', 'mergeop-prep'
* changes: Rewrite MergeOp to use BatchUpdate BatchUpdate: Eagerly load ChangeNotes MergeOp: Record when submit rules were bypassed BatchUpdate: Always bump lastUpdatedOn BatchUpdate: Don't update change if there was nothing to do
This commit is contained in:
@@ -287,7 +287,7 @@ public class ChangeInserter extends BatchUpdate.InsertChangeOp {
|
||||
}
|
||||
|
||||
@Override
|
||||
public void updateChange(ChangeContext ctx) throws OrmException, IOException {
|
||||
public boolean updateChange(ChangeContext ctx) throws OrmException, IOException {
|
||||
change = ctx.getChange(); // Use defensive copy created by ChangeControl.
|
||||
ReviewDb db = ctx.getDb();
|
||||
ChangeControl ctl = ctx.getControl();
|
||||
@@ -330,6 +330,7 @@ public class ChangeInserter extends BatchUpdate.InsertChangeOp {
|
||||
changeMessage.setMessage(message);
|
||||
cmUtil.addChangeMessage(db, update, changeMessage);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
@Override
|
||||
|
||||
Reference in New Issue
Block a user