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;
	}
Added for ngrinder.
Handle different branch concept in svn and github.
ngrinder-controller/src/main/java/org/tmatesoft/svn/core/internal/io/dav/DAVUtil.java