From 40b1f876fb23e0936fcdd092880b2c224c0bf294 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Thu, 21 Mar 2019 19:02:51 +0300 Subject: [PATCH] [file-history] cleanup: convert field to variable --- .../impl/src/com/intellij/vcs/log/history/FileHistory.kt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt b/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt index 00b0566617ac..ece5773fe2d3 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/history/FileHistory.kt @@ -175,12 +175,12 @@ internal class FileHistoryRefiner(private val visibleLinearGraph: LinearGraph, private val paths = Stack() private val visibilityBuffer = BitSetFlags(permanentLinearGraph.nodesCount()) // a reusable buffer for bfs private val pathsForCommits = ContainerUtil.newHashMap() - private val excluded = ContainerUtil.newHashSet() fun refine(row: Int, startPath: MaybeDeletedFilePath): Pair, HashSet> { paths.push(startPath) LinearGraphUtils.asLiteLinearGraph(visibleLinearGraph).walk(row, this) + val excluded = ContainerUtil.newHashSet() pathsForCommits.forEach { commit, path -> if (path != null && !namesData.affects(commit, path, true)) { excluded.add(commit)