ProjectConfig#saveLabelSections: Save "branch" values

The branch values were not set in the config before saving, resulting
in the values being omitted from the config.

Change-Id: I95da7e27189558f98bd62c172e319be233b7b568
This commit is contained in:
David Pursehouse
2018-06-15 12:53:48 +09:00
parent 65b93383af
commit e48cb9be49
2 changed files with 14 additions and 0 deletions

View File

@@ -1340,6 +1340,11 @@ public class ProjectConfig extends VersionedMetaData implements ValidationError.
values.add(value.format());
}
rc.setStringList(LABEL, name, KEY_VALUE, values);
List<String> refPatterns = label.getRefPatterns();
if (refPatterns != null && !refPatterns.isEmpty()) {
rc.setStringList(LABEL, name, KEY_BRANCH, refPatterns);
}
}
for (String name : toUnset) {