Local History change temporarily reverted

This commit is contained in:
Anton Makeev
2014-03-05 11:28:12 +01:00
parent 803d865ed9
commit c692398423
3 changed files with 2 additions and 8 deletions
@@ -146,13 +146,6 @@ public class IdeaGateway {
return nf.getCachedChildren();
}
@NotNull
public static Collection<VirtualFile> loadAndIterateChildren(VirtualFile f) {
if (!(f instanceof NewVirtualFile)) return Collections.emptyList();
NewVirtualFile nf = (NewVirtualFile)f;
return Arrays.asList(nf.getChildren());
}
@NotNull
public RootEntry createTransientRootEntry() {
ApplicationManager.getApplication().assertReadAccessAllowed();
@@ -93,7 +93,7 @@ public class LocalHistoryEventDispatcher extends VirtualFileAdapter implements V
myVcs.created(f.getPath(), f.isDirectory());
}
if (f.isDirectory()) {
for (VirtualFile each : IdeaGateway.loadAndIterateChildren(f)) {
for (VirtualFile each : IdeaGateway.iterateDBChildren(f)) {
createRecursively(each);
}
}
@@ -73,6 +73,7 @@ public class FileListeningTest extends IntegrationTestCase {
myRoot.refresh(false, true);
List<Change> changes = getVcs().getChangeListInTests().getChangesInTests().get(0).getChanges();
assertEquals(changes.toString(), 4, changes.size());
List<String> actual = new SmartList<String>();
for (Change each : changes) {
actual.add(((StructuralChange)each).getPath());