diff options
author | Sebastian Schuberth <sschuberth@gmail.com> | 2016-02-06 20:33:40 +0100 |
---|---|---|
committer | Sebastian Schuberth <sschuberth@gmail.com> | 2016-02-06 20:38:53 +0100 |
commit | 478a04fbcb05f721611ee11b254917612a12d625 (patch) | |
tree | 0812dab2e39eb43caab39bc46b9466fb934cccad | |
parent | 063991f49d2554d427930e216dd2b0f70cc4623d (diff) |
OutputStreamQuery: Take files into account when adding patch sets
The original fix for issue 3762 did not consider whether files should be
included in the patch set or not. Fix this by using the overload of
addPatchSets() which takes the includeFiles argument.
Bug: Issue 3877
Change-Id: Ie594b93d65bae6cdc353ba22ac1f2d558689a76a
-rw-r--r-- | gerrit-server/src/main/java/com/google/gerrit/server/query/change/OutputStreamQuery.java | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/gerrit-server/src/main/java/com/google/gerrit/server/query/change/OutputStreamQuery.java b/gerrit-server/src/main/java/com/google/gerrit/server/query/change/OutputStreamQuery.java index ebce61e881..1825b91560 100644 --- a/gerrit-server/src/main/java/com/google/gerrit/server/query/change/OutputStreamQuery.java +++ b/gerrit-server/src/main/java/com/google/gerrit/server/query/change/OutputStreamQuery.java @@ -236,7 +236,9 @@ public class OutputStreamQuery { if (includeComments) { eventFactory.addComments(c, d.messages()); if (includePatchSets) { - eventFactory.addPatchSets(c, d.patches(), labelTypes); + eventFactory.addPatchSets(c, d.patches(), + includeApprovals ? d.approvals().asMap() : null, + includeFiles, d.change(), labelTypes); for (PatchSetAttribute attribute : c.patchSets) { eventFactory.addPatchSetComments(attribute, d.publishedComments()); } |