Package org.tmatesoft.svn.core.internal.server.dav

Examples of org.tmatesoft.svn.core.internal.server.dav.DAVAutoVersion


            }
            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}.",
View Full Code Here

TOP

Related Classes of org.tmatesoft.svn.core.internal.server.dav.DAVAutoVersion

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.