Store Change-Id in notedb

This adds a 'Change-id' footer to the commit message of the
refs/changes/XX/YYYY/meta notes branch when the change is created.

Tests which manually insert new changes must be adapted so that the
initial commit to the notes branch contains the Change-Id info.

Change-Id: I4a8fde3da5458afab69b39230a6db117fbef8ab9
Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
Edwin Kempin
2016-01-27 13:59:42 +01:00
parent dc1c9efd84
commit f2693acdaa
13 changed files with 104 additions and 6 deletions

View File

@@ -296,6 +296,7 @@ public class ChangeInserter extends BatchUpdate.InsertChangeOp {
ctx.getChange().setCurrentPatchSet(patchSetInfo);
ChangeUpdate update = ctx.getUpdate(psId);
update.setChangeId(change.getKey().get());
update.setSubjectForCommit("Create change");
update.setBranch(change.getDest().get());
update.setTopic(change.getTopic());