Merge "Merge branch 'stable-2.14'"

This commit is contained in:
Edwin Kempin
2017-06-20 06:04:31 +00:00
committed by Gerrit Code Review
2 changed files with 4 additions and 1 deletions

View File

@@ -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;
}

View File

@@ -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;