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:
Edwin Kempin
2016-01-20 14:32:27 +01:00
parent 631c8009d7
commit e8618b8e55
12 changed files with 143 additions and 6 deletions

View File

@@ -551,6 +551,10 @@ public final class Change {
return dest;
}
public void setDest(Branch.NameKey dest) {
this.dest = dest;
}
public Project.NameKey getProject() {
return dest.getParentKey();
}