if (entry != null) {
replaced = entry.isScheduledForReplacement();
}
SVNVersionedProperties props = dir.getProperties(name);
SVNVersionedProperties baseProps = replaced ? null : dir.getBaseProperties(name);
SVNProperties diff = replaced ? props.asMap() : baseProps.compareTo(props).asMap();
if (diff != null && !diff.isEmpty()) {
File tmpPropsFile = dir.getPropertiesFile(name, true);
SVNWCProperties tmpProps = new SVNWCProperties(tmpPropsFile, null);
for(Iterator propNames = props.getPropertyNames(null).iterator(); propNames.hasNext();) {
String propName = (String) propNames.next();