if (!getSVNEnvironment().isQuiet()) {
client.setEventHandler(new SVNNotifyPrinter(getSVNEnvironment()));
}
Collection pathsList = new ArrayList(targets.size());
for(int i = 0; i < targets.size(); i++) {
SVNPath target = new SVNPath((String) targets.get(i));
if (target.isFile()) {
if ("".equals(target.getTarget())) {
if (isScheduledForAddition(target.getFile())) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.WC_INVALID_OP_ON_CWD,
"Cannot revert addition of current directory; please try again from the parent directory");
SVNErrorManager.error(err, SVNLogType.CLIENT);
}
}
pathsList.add(target.getFile());
}
}
Collection changeLists = getSVNEnvironment().getChangelistsCollection();
File[] paths = (File[]) pathsList.toArray(new File[pathsList.size()]);