public static DAVProperties getBaselineProperties(DAVConnection connection, DAVRepository repos, String path, long revision, DAVElement[] elements) throws SVNException { DAVProperties properties = null; String loppedPath = ""; properties = findStartingProperties(connection, repos, path); String vcc = properties.getPropertyValue(DAVElement.VERSION_CONTROLLED_CONFIGURATION); if (vcc == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "The VCC property was not found on the resource"); SVNErrorManager.error(err); } loppedPath = properties.getLoppedPath(); String baselineRelativePath = properties.getPropertyValue(DAVElement.BASELINE_RELATIVE_PATH); if (baselineRelativePath == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "The relative-path property was not found on the resource"); SVNErrorManager.error(err); } baselineRelativePath = SVNEncodingUtil.uriEncode(baselineRelativePath); baselineRelativePath = SVNPathUtil.append(baselineRelativePath, loppedPath); String label = null; if (revision < 0) { vcc = getPropertyValue(connection, vcc, null, DAVElement.CHECKED_IN); } else { label = Long.toString(revision); } properties = getResourceProperties(connection, vcc, label, elements); properties.setURL(baselineRelativePath); return properties; }
public static DAVProperties getBaselineProperties(DAVConnection connection, DAVRepository repos, String path, long revision, DAVElement[] elements) throws SVNException { DAVProperties properties = null; String loppedPath = ""; properties = findStartingProperties(connection, repos, path); SVNPropertyValue vccValue = properties.getPropertyValue(DAVElement.VERSION_CONTROLLED_CONFIGURATION); if (vccValue == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "The VCC property was not found on the resource"); SVNErrorManager.error(err, SVNLogType.NETWORK); } loppedPath = properties.getLoppedPath(); SVNPropertyValue baselineRelativePathValue = properties.getPropertyValue(DAVElement.BASELINE_RELATIVE_PATH); if (baselineRelativePathValue == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "The relative-path property was not found on the resource"); SVNErrorManager.error(err, SVNLogType.NETWORK); } String baselineRelativePath = SVNEncodingUtil.uriEncode(baselineRelativePathValue.getString()); baselineRelativePath = SVNPathUtil.append(baselineRelativePath, loppedPath); String label = null; String vcc = vccValue.getString(); if (revision < 0) { vcc = getPropertyValue(connection, vcc, null, DAVElement.CHECKED_IN); } else { label = Long.toString(revision); } properties = getResourceProperties(connection, vcc, label, elements); properties.setURL(baselineRelativePath); return properties; }
public static DAVProperties getBaselineProperties(DAVConnection connection, DAVRepository repos, String path, long revision, DAVElement[] elements) throws SVNException { DAVProperties properties = null; String loppedPath = ""; properties = findStartingProperties(connection, repos, path); SVNPropertyValue vccValue = properties.getPropertyValue(DAVElement.VERSION_CONTROLLED_CONFIGURATION); if (vccValue == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "The VCC property was not found on the resource"); SVNErrorManager.error(err, SVNLogType.NETWORK); } loppedPath = properties.getLoppedPath(); SVNPropertyValue baselineRelativePathValue = properties.getPropertyValue(DAVElement.BASELINE_RELATIVE_PATH); if (baselineRelativePathValue == null) { SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.RA_DAV_REQUEST_FAILED, "The relative-path property was not found on the resource"); SVNErrorManager.error(err, SVNLogType.NETWORK); } String baselineRelativePath = SVNEncodingUtil.uriEncode(baselineRelativePathValue.getString()); baselineRelativePath = SVNPathUtil.append(baselineRelativePath, loppedPath); String label = null; String vcc = vccValue.getString(); if (revision < 0) { vcc = getPropertyValue(connection, vcc, null, DAVElement.CHECKED_IN); } else { label = Long.toString(revision); } properties = getResourceProperties(connection, vcc, label, elements); properties.setURL(baselineRelativePath); return properties; }
SVNErrorManager.error(err, SVNLogType.NETWORK); loppedPath = properties.getLoppedPath(); SVNPropertyValue baselineRelativePathValue = properties.getPropertyValue(DAVElement.BASELINE_RELATIVE_PATH); if (baselineRelativePathValue == null) {