String url = wcAccess.getTargetEntryProperty(SVNProperty.URL); SVNRevision pegRevision = SVNRevision.parse(wcAccess .getTargetEntryProperty(SVNProperty.REVISION)); doSetRevisionProperty(url, pegRevision, revision, propName, propValue, force, handler);
SVNEntry entry = wcAccess.getTargetEntry(); SVNURL url = entry.getSVNURL(); SVNRevision pegRevision = SVNRevision.parse(wcAccess.getTargetEntryProperty(SVNProperty.REVISION)); doSetRevisionProperty(url, pegRevision, revision, propName, propValue, force, handler);
    public void doSetRevisionProperty(File path, SVNRevision revision,            String propName, String propValue, boolean force,            ISVNPropertyHandler handler) throws SVNException {        propName = validatePropertyName(propName);        if (propName.startsWith(SVNProperty.SVN_WC_PREFIX)) {            SVNErrorManager.error("svn: '" + propName                    + "' is a wcprop , thus not accessible to clients");        }        SVNWCAccess wcAccess = createWCAccess(path);        try {            wcAccess.open(true, false);            String url = wcAccess.getTargetEntryProperty(SVNProperty.URL);            SVNRevision pegRevision = SVNRevision.parse(wcAccess                    .getTargetEntryProperty(SVNProperty.REVISION));            doSetRevisionProperty(url, pegRevision, revision, propName,                    propValue, force, handler);        } finally {            wcAccess.close(true);        }    }