Merge "Create a draft patch set when a draft patch set is rebased" into stable-2.5

This commit is contained in:
Shawn Pearce
2012-09-16 12:04:56 -07:00
committed by gerrit code review

View File

@@ -353,6 +353,7 @@ public class ChangeUtil {
newPatchSet.setCreatedOn(new Timestamp(System.currentTimeMillis()));
newPatchSet.setUploader(user.getAccountId());
newPatchSet.setRevision(new RevId(rebasedCommit.name()));
newPatchSet.setDraft(originalPatchSet.isDraft());
final PatchSetInfo info =
patchSetInfoFactory.get(rebasedCommit, newPatchSet.getId());