PatchSetInfoFactory: Use PatchSetUtil
Some public methods now need to take ChangeNotes. A significant affected caller was ChangeHookRunner, which now needs to construct notes on many event types. This might be able to be avoided if we changed the ChangeHooks interface, but that is saved for later cleanup. Change-Id: Ia2f0b9b07bc9e32b8c010191d3a6c3bbf848a5d1
This commit is contained in:
@@ -185,7 +185,7 @@ class PatchSetDetailFactory extends Handler<PatchSetDetail> {
|
||||
detail.setPatchSet(patchSet);
|
||||
detail.setProject(project);
|
||||
|
||||
detail.setInfo(infoFactory.get(db, patchSet.getId()));
|
||||
detail.setInfo(infoFactory.get(db, notes, patchSet.getId()));
|
||||
detail.setPatches(patches);
|
||||
|
||||
final CurrentUser user = control.getUser();
|
||||
|
||||
Reference in New Issue
Block a user