use of org.tmatesoft.svn.core.wc2.SvnGetStatus in project GMM by Katharsas.
the class SvnPlugin method verifyExistingWorkingCopy.
private void verifyExistingWorkingCopy() {
final SvnGetStatus ops = svnOperationFactory.createGetStatus();
ops.setSingleTarget(workingCopy);
ops.setReportAll(logger.isDebugEnabled());
final Collection<SvnStatus> statuses = tryRun(ops, new ArrayList<>(SvnStatus.class));
for (final SvnStatus entry : statuses) {
final SVNStatusType type = entry.getNodeStatus();
final String filePath = entry.getPath().getPath();
if (type != SVNStatusType.STATUS_NORMAL) {
logger.error("Existing working copy is in an invalid state (maybe modified)! " + "Pls fix manually or delete working copy at '" + workingCopy + "'.");
throw new ConfigurationException("Found entry with invalid status in working copy! " + "Relative path: '" + filePath + "'. Status: '" + type + "'.");
}
}
}
Aggregations