}
return;
}
if (resource != null && resource.isWorking() && (unlock || info.isResourceCheckedOut())) {
DAVAutoVersion autoVersion = resource.getAutoVersion();
if (autoVersion == DAVAutoVersion.ALWAYS || (unlock && autoVersion == DAVAutoVersion.LOCKED)) {
try {
checkIn(resource, false, false);
} catch (DAVException dave) {
throw new DAVException("Unable to auto-checkin resource {0}.",
new Object[] { SVNEncodingUtil.xmlEncodeCDATA(resource.getResourceURI().getRequestURI()) },
HttpServletResponse.SC_INTERNAL_SERVER_ERROR, null, SVNLogType.NETWORK, Level.FINE, dave, null, null, 0, null);
}
}
}
if (!unlock && info.isParentCheckedOut() && info.getParentResource() != null &&
info.getParentResource().getType() == DAVResourceType.WORKING) {
DAVAutoVersion autoVersion = info.getParentResource().getAutoVersion();
if (autoVersion == DAVAutoVersion.ALWAYS) {
try {
checkIn(info.getParentResource(), false, false);
} catch (DAVException dave) {
throw new DAVException("Unable to auto-checkin parent collection {0}.",