Merge branch 'stable-2.14' into stable-2.15
* stable-2.14: Remove circular dependency between diff_summary and diff caches Fix build for bazel 0.9.0 Change-Id: I3f68cc52ccde83657cf11972cae02c9f3cf6d70e
This commit is contained in:
commit
4ad6839f11
@ -19,7 +19,7 @@ genrule2(
|
||||
cmd = " && ".join([
|
||||
"$(location //lib/antlr:antlr-tool) -o $$TMP $<",
|
||||
"cd $$TMP",
|
||||
"$$ROOT/$(location @bazel_tools//tools/zip:zipper) cC $$ROOT/$@ $$(find *)",
|
||||
"zip $$ROOT/$@ $$(find . -type f )",
|
||||
]),
|
||||
tools = [
|
||||
"//lib/antlr:antlr-tool",
|
||||
|
@ -49,7 +49,7 @@ public class DiffSummaryLoader implements Callable<DiffSummary> {
|
||||
return toDiffSummary(patchList);
|
||||
}
|
||||
|
||||
static DiffSummary toDiffSummary(PatchList patchList) {
|
||||
private DiffSummary toDiffSummary(PatchList patchList) {
|
||||
List<String> r = new ArrayList<>(patchList.getPatches().size());
|
||||
for (PatchListEntry e : patchList.getPatches()) {
|
||||
if (Patch.isMagic(e.getNewName())) {
|
||||
|
@ -15,8 +15,6 @@
|
||||
|
||||
package com.google.gerrit.server.patch;
|
||||
|
||||
import static com.google.gerrit.server.patch.DiffSummaryLoader.toDiffSummary;
|
||||
|
||||
import com.google.common.annotations.VisibleForTesting;
|
||||
import com.google.common.cache.Cache;
|
||||
import com.google.common.util.concurrent.UncheckedExecutionException;
|
||||
@ -106,9 +104,6 @@ public class PatchListCacheImpl implements PatchListCache {
|
||||
throw new PatchListNotAvailableException(
|
||||
"Error computing " + key + ". Previous attempt failed with LargeObjectException");
|
||||
}
|
||||
if (key.getAlgorithm() == PatchListKey.Algorithm.OPTIMIZED_DIFF) {
|
||||
diffSummaryCache.put(DiffSummaryKey.fromPatchListKey(key), toDiffSummary(pl));
|
||||
}
|
||||
return pl;
|
||||
} catch (ExecutionException e) {
|
||||
PatchListLoader.log.warn("Error computing " + key, e);
|
||||
|
Loading…
x
Reference in New Issue
Block a user