for (Iterator names = diff.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String value = (String) diff.get(propName); if (item.getKind() == SVNNodeKind.FILE) { editor.changeFileProperty(propName, value); } else { editor.changeDirProperty(propName, value);
if (diff != null && !diff.isEmpty()) { props.copyTo(dir.getBaseProperties(name, true)); myTmpFiles.add(dir.getBaseProperties(name, true).getFile());  for (Iterator names = diff.keySet().iterator(); names.hasNext();) { String propName = (String) names.next(); String value = (String) diff.get(propName); if (item.getKind() == SVNNodeKind.FILE) { editor.changeFileProperty(item.getPath(), propName, value); } else { editor.changeDirProperty(propName, value); }
    private void sendPropertiedDelta(SVNCommitItem item, ISVNEditor editor) throws SVNException {        SVNDirectory dir;        String name;        if (item.getKind() == SVNNodeKind.DIR) {            dir = myWCAccess.getDirectory(item.getPath());            name = "";        } else {            dir = myWCAccess.getDirectory(PathUtil.removeTail(item.getPath()));            name = PathUtil.tail(item.getPath());        }        SVNEntry entry = dir.getEntries().getEntry(name, false);        boolean replaced = false;        if (entry != null) {            replaced = entry.isScheduledForReplacement();        }        SVNProperties props = dir.getProperties(name, false);        SVNProperties baseProps = replaced ? null : dir.getBaseProperties(name, false);        Map diff = replaced ? props.asMap() : baseProps.compareTo(props);        for (Iterator names = diff.keySet().iterator(); names.hasNext();) {            String propName = (String) names.next();            String value = (String) diff.get(propName);            if (item.getKind() == SVNNodeKind.FILE) {                editor.changeFileProperty(propName, value);            } else {                editor.changeDirProperty(propName, value);            }        }    }