From 8403f25f79c28445b9ec56fe3d2a5ade69988180 Mon Sep 17 00:00:00 2001 From: irengrig Date: Mon, 15 Feb 2010 15:56:41 +0300 Subject: [PATCH] VCS: fix group by structure for Changes | Local --- .../src/com/intellij/openapi/vcs/changes/ui/TreeModelBuilder.java | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/TreeModelBuilder.java b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/TreeModelBuilder.java index 7908373b29..64fefab61f 100644 --- a/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/TreeModelBuilder.java +++ b/platform/vcs-impl/src/com/intellij/openapi/vcs/changes/ui/TreeModelBuilder.java @@ -128,28 +128,36 @@ public class TreeModelBuilder { buildModel(changeLists); if (!modifiedWithoutEditing.isEmpty()) { + myFoldersCache.clear(); buildVirtualFiles(modifiedWithoutEditing, ChangesBrowserNode.MODIFIED_WITHOUT_EDITING_TAG); } if (!unversionedFiles.isEmpty()) { + myFoldersCache.clear(); buildVirtualFiles(unversionedFiles, ChangesBrowserNode.UNVERSIONED_FILES_TAG); } if (switchedRoots != null && (! switchedRoots.isEmpty())) { + myFoldersCache.clear(); buildSwitchedRoots(switchedRoots); } if (!switchedFiles.isEmpty()) { + myFoldersCache.clear(); buildSwitchedFiles(switchedFiles); } if (ignoredFiles != null && !ignoredFiles.isEmpty()) { + myFoldersCache.clear(); buildVirtualFiles(ignoredFiles, ChangesBrowserNode.IGNORED_FILES_TAG); } if (lockedFolders != null && !lockedFolders.isEmpty()) { + myFoldersCache.clear(); buildVirtualFiles(lockedFolders, ChangesBrowserNode.LOCKED_FOLDERS_TAG); } if (logicallyLockedFiles != null && (! logicallyLockedFiles.isEmpty())) { + myFoldersCache.clear(); buildLogicallyLockedFiles(logicallyLockedFiles); } if (!locallyDeletedFiles.isEmpty()) { + myFoldersCache.clear(); ChangesBrowserNode locallyDeletedNode = ChangesBrowserNode.create(myProject, VcsBundle.message("changes.nodetitle.locally.deleted.files")); model.insertNodeInto(locallyDeletedNode, root, root.getChildCount()); buildLocallyDeletedPaths(locallyDeletedFiles, locallyDeletedNode); -- 2.11.4.GIT