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:
Dave Borowitz
2016-01-19 12:55:50 -05:00
parent 0dfabcc1ac
commit 3a6dea327c
9 changed files with 87 additions and 54 deletions

View File

@@ -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();