Simplify PatchSetInserter.Factory signature

Pass a ChangeControl instead of a RefControl, from which the change
and user can be gotten.

Change-Id: I95e682bdda69071237ad878586f06b10e4266146
This commit is contained in:
Dave Borowitz
2013-12-20 08:46:21 -08:00
parent 9b28aca43a
commit 9dc9639d30
4 changed files with 48 additions and 40 deletions

View File

@@ -416,7 +416,7 @@ public class ChangeUtil {
+ ": Commit message was updated";
change = patchSetInserterFactory
.create(git, revWalk, ctl.getRefControl(), user(), change, newCommit)
.create(git, revWalk, ctl, newCommit)
.setPatchSet(newPatchSet)
.setMessage(msg)
.setCopyLabels(true)