Set subject for commits on note branch when change/ps is created

Instead of using the default subject for commits on the note branch
which is

  Update patch set XX

be more specific when a change / patch set is created:

  Create change / Create patch set XX

These messages are consistent with the ones that are set by
ChangeRebuilder.

Change-Id: I26a0154f92d55fe594d46be031047de27e37366c
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-01-20 10:04:46 +01:00
parent d94ef2a7de
commit 315005ddb0
5 changed files with 9 additions and 0 deletions

View File

@@ -2245,6 +2245,7 @@ public class ReceiveCommits {
Map<String, Short> approvals = new HashMap<>();
ChangeUpdate update = updateFactory.create(
changeCtl, newPatchSet.getCreatedOn());
update.setSubject("Create patch set " + newPatchSet.getId().get());
update.setPatchSetId(newPatchSet.getId());
if (magicBranch != null) {