From 5ae0edd42a64e1f8fff4a249f437bcfdbebb1266 Mon Sep 17 00:00:00 2001 From: Julia Beliaeva Date: Mon, 17 Apr 2017 18:31:15 +0300 Subject: [PATCH] [vcs-log] index parents for all of the moves --- .../com/intellij/vcs/log/data/index/VcsLogPathsIndex.java | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java index bee21ca99b1b..38979f359bb3 100644 --- a/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java +++ b/platform/vcs-log/impl/src/com/intellij/vcs/log/data/index/VcsLogPathsIndex.java @@ -260,6 +260,12 @@ public class VcsLogPathsIndex extends VcsLogFullDetailsIndex { + changedPaths.add(PathUtil.getParentPath(move.first)); + changedPaths.add(PathUtil.getParentPath(move.second)); + // we need to index all parents for the moves + // so it makes sense to add them there + }); getParentPaths(changedPaths).forEach(changedPath -> { try { addChangeToResult(result, finalParent, changedPath, null); @@ -311,6 +317,7 @@ public class VcsLogPathsIndex extends VcsLogFullDetailsIndex