SVNProperties entryProps = new SVNProperties();
SVNProperties wcProps = new SVNProperties();
for (Iterator names = properties.nameSet().iterator(); names.hasNext();) {
String propName = (String) names.next();
SVNPropertyValue propValue = properties.getSVNPropertyValue(propName);
if (SVNProperty.isEntryProperty(propName)) {
entryProps.put(SVNProperty.shortPropertyName(propName), propValue);
} else if (SVNProperty.isWorkingCopyProperty(propName)) {
wcProps.put(propName, propValue);
} else {
regularProps.put(propName, propValue);
}
}
SVNVersionedProperties props = base ? dir.getBaseProperties(fileName) : dir.getProperties(fileName);
props.removeAll();
for (Iterator propNames = regularProps.nameSet().iterator(); propNames.hasNext();) {
String propName = (String) propNames.next();
SVNPropertyValue propValue = regularProps.getSVNPropertyValue(propName);
props.setPropertyValue(propName, propValue);
}
dir.saveVersionedProperties(log, false);
log.logChangedEntryProperties(fileName, entryProps);
log.logChangedWCProperties(fileName, wcProps);