addedFiles.add(change.getAfterRevision().getFile().getVirtualFile());
}else {
exceptions.add(new VcsException("only MODIFIED/ADDED (!= "+change.getFileStatus()+"files are currently supported" ));
}
}
RevertAPICommand revertAPICommand = new RevertAPICommand();
try {
List<VirtualFile> filesToRevert = new ArrayList<VirtualFile>();
filesToRevert.addAll(modifiedFiles);
filesToRevert.addAll(addedFiles);
revertAPICommand.executeCommand(mksVcs, exceptions, filesToRevert.toArray(new VirtualFile[filesToRevert.size()]));
} catch (VcsException e) {
//noinspection ThrowableInstanceNeverThrown
exceptions.add(e);
}
for (Change change : changes) {