Merge branch 'stable-2.14'
* stable-2.14: Set reflog message and identity when merging change Change-Id: Ia7c856fe081d674c886ae983d59ce89fc9a5fe9b
This commit is contained in:
@@ -204,7 +204,7 @@ public class MergeOpRepoManager implements AutoCloseable {
|
||||
throws NoSuchProjectException, IOException {
|
||||
List<BatchUpdate> updates = new ArrayList<>(projects.size());
|
||||
for (Project.NameKey project : projects) {
|
||||
updates.add(getRepo(project).getUpdate(batchUpdateFactory));
|
||||
updates.add(getRepo(project).getUpdate(batchUpdateFactory).setRefLogMessage("merged"));
|
||||
}
|
||||
return updates;
|
||||
}
|
||||
|
||||
@@ -416,6 +416,9 @@ class ReviewDbBatchUpdate extends BatchUpdate {
|
||||
batchRefUpdate.setRefLogMessage(refLogMessage, true);
|
||||
batchRefUpdate.setAllowNonFastForwards(true);
|
||||
repoView.getCommands().addTo(batchRefUpdate);
|
||||
if (user.isIdentifiedUser()) {
|
||||
batchRefUpdate.setRefLogIdent(user.asIdentifiedUser().newRefLogIdent(when, tz));
|
||||
}
|
||||
logDebug("Executing batch of {} ref updates", batchRefUpdate.getCommands().size());
|
||||
if (dryrun) {
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user