Don't retain commit messages during merge base tests

We don't need the commit messages, just to walk the graph.
Discarding the bodies can save some memory in the JVM while
the task executes.

Change-Id: If2774e1011f8b11d516984f16b86b116a80cf1b0
Signed-off-by: Shawn O. Pearce <sop@google.com>
diff --git a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/changedetail/IncludedInDetailFactory.java b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/changedetail/IncludedInDetailFactory.java
index 67455bb..ec0f225 100644
--- a/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/changedetail/IncludedInDetailFactory.java
+++ b/gerrit-httpd/src/main/java/com/google/gerrit/httpd/rpc/changedetail/IncludedInDetailFactory.java
@@ -80,6 +80,8 @@
         repoManager.openRepository(control.getProject().getName());
     try {
       final RevWalk rw = new RevWalk(repo);
+      rw.setRetainBody(false);
+
       final RevCommit rev;
       try {
         rev = rw.parseCommit(ObjectId.fromString(patch.getRevision().get()));