}
}
if ((baseValue != null && oldValue == null) ||
(baseValue == null && oldValue != null)) {
SVNPropertyValue theValue = baseValue != null ? baseValue : oldValue;
baseFile = SVNFileUtil.createUniqueFile(path.getParentFile(), path.getName(), ".tmp", false);
OutputStream os = SVNFileUtil.openFileForWriting(baseFile);
try {
os.write(SVNPropertyValue.getPropertyAsBytes(theValue));
} catch (IOException e) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.IO_ERROR,
"Cannot write a base property value file: {1}", e.getLocalizedMessage());
SVNErrorManager.error(err, e, SVNLogType.WC);
} finally {
SVNFileUtil.closeFile(os);
}
} else if (baseValue != null && oldValue != null) {
SVNPropertyValue theValue = baseValue;
if (!baseValue.equals(oldValue)) {
if (workingValue != null && baseValue.equals(workingValue)) {
theValue = oldValue;
}
}