void () { final SubTree subTree = new SubTree(myWorkingCopyDir); refreshChanges(); final List<VirtualFile> files = getAllFiles(subTree); checkFilesAreInList(toVirtualFileArray(files), changeListManager.getDefaultListName(), changeListManager); final Collection<Change> changes = changeListManager.getDefaultChangeList().getChanges(); final RollbackWorker worker = new RollbackWorker(myProject); worker.doRollback(changes, false); assertVF(subTree.myRootDir, "source"); assertVF(subTree.mySourceDir, "s1.txt"); assertVF(subTree.myRootDir, "target"); changeListManager.ensureUpToDate(); checkFilesAreInList(VirtualFile.EMPTY_ARRAY, changeListManager.getDefaultListName(), changeListManager); for (VirtualFile file : files) { assertTrue(file.getPath(), changeListManager.isUnversioned(file)); } }