FSRevisionNode revNode2 = root2.getRevisionNode(path2);
return !areRepresentationsEqual(revNode1, revNode2, false);
}
public static SVNProperties getPropsDiffs(SVNProperties sourceProps, SVNProperties targetProps){
SVNProperties result = new SVNProperties();
if(sourceProps == null){
sourceProps = new SVNProperties();
}
if(targetProps == null){
targetProps = new SVNProperties();
}
for(Iterator names = sourceProps.nameSet().iterator(); names.hasNext();){
String propName = (String) names.next();
SVNPropertyValue srcPropVal = sourceProps.getSVNPropertyValue(propName);
SVNPropertyValue targetPropVal = targetProps.getSVNPropertyValue(propName);
if (targetPropVal == null) {
result.put(propName, targetPropVal);
} else if (!targetPropVal.equals(srcPropVal)) {
result.put(propName, targetPropVal);
}
}
for(Iterator names = targetProps.nameSet().iterator(); names.hasNext();){
String propName = (String)names.next();
SVNPropertyValue targetPropVal = targetProps.getSVNPropertyValue(propName);
SVNPropertyValue sourceValue = sourceProps.getSVNPropertyValue(propName);
if (sourceValue == null){
result.put(propName, targetPropVal);
}
}
return result;
}