}
if (targets.isEmpty() || index > targets.size() - 1 ) {
SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.CL_ARG_PARSING_ERROR,
"Repository argument required"), SVNLogType.CLIENT);
}
SVNPath target = new SVNPath((String) targets.get(index));
if (target.isURL()) {
SVNErrorManager.error(SVNErrorMessage.create(SVNErrorCode.CL_ARG_PARSING_ERROR,
"'" + target.getTarget() + "' is an URL when it should be a path"), SVNLogType.CLIENT);
}
return target.getFile();
}