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:
		@@ -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());
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user