Store destination branch in notedb
This adds a 'Branch' 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 to make an initial commit to the notes branch which contains the branch info. Change-Id: If6ffadf722ca5c48e159889aedbc1ffba27a8d5a Signed-off-by: Edwin Kempin <ekempin@google.com>
This commit is contained in:
@@ -297,6 +297,7 @@ public class ChangeInserter extends BatchUpdate.InsertChangeOp {
|
||||
|
||||
ChangeUpdate update = ctx.getUpdate(psId);
|
||||
update.setSubject("Create change");
|
||||
update.setBranch(change.getDest().get());
|
||||
update.setTopic(change.getTopic());
|
||||
|
||||
boolean draft = status == Change.Status.DRAFT;
|
||||
|
||||
Reference in New Issue
Block a user