if (!force && SVNRevisionProperty.AUTHOR.equals(propName) && propValue != null && propValue.indexOf('\n') >= 0) { SVNErrorManager.error("svn: Value will not be set unless forced"); } if (propName.startsWith(SVNProperty.SVN_WC_PREFIX)) { SVNErrorManager.error("svn: '" + propName + "' is a wcprop , thus not accessible to clients"); } SVNRepository repos = createRepository(url, null, SVNRevision.UNDEFINED, revision); long revNumber = getRevisionNumber(revision, repos, null); repos.setRevisionPropertyValue(revNumber, propName, propValue); if (handler != null) { handler.handleProperty(revNumber, new SVNPropertyData(propName, propValue)); }
SVNURL url = getURL(path); doSetRevisionProperty(url, revision, propName, propValue, force, handler);
    public void doSetRevisionProperty(SVNURL url, SVNRevision revision, String propName, String propValue, boolean force, ISVNPropertyHandler handler) throws SVNException {        propName = validatePropertyName(propName);        if (!force && SVNRevisionProperty.AUTHOR.equals(propName) && propValue != null && propValue.indexOf('\n') >= 0) {            SVNErrorManager.error("svn: Value will not be set unless forced");        }        if (propName.startsWith(SVNProperty.SVN_WC_PREFIX)) {            SVNErrorManager.error("svn: '" + propName + "' is a wcprop , thus not accessible to clients");        }        SVNRepository repos = createRepository(url, null, SVNRevision.UNDEFINED, revision);        long revNumber = getRevisionNumber(revision, repos, null);        repos.setRevisionPropertyValue(revNumber, propName, propValue);        if (handler != null) {            handler.handleProperty(revNumber, new SVNPropertyData(propName, propValue));        }    }