FSRevisionRoot sourceRoot = getSourceRoot(sourceRevision); FSRevisionNode sourceNode = sourceRoot.getRevisionNode(sourcePath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return;
private static void deltifyProperties(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, boolean isDir) throws SVNException { FSRevisionNode targetNode = tgtRoot.getRevisionNode(tgtPath); SVNProperties sourceProps = null; if (srcPath != null) { FSRevisionNode sourceNode = srcRoot.getRevisionNode(srcPath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return; } sourceProps = sourceNode.getProperties(fsfs); } else { sourceProps = new SVNProperties(); } SVNProperties targetProps = targetNode.getProperties(fsfs); SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) { String propName = (String) names[i]; SVNPropertyValue propValue = propsDiffs.getSVNPropertyValue(propName); if (isDir) { editor.changeDirProperty(propName, propValue); } else { editor.changeFileProperty(editPath, propName, propValue); } } }
private static void deltifyProperties(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, boolean isDir) throws SVNException { FSRevisionNode targetNode = tgtRoot.getRevisionNode(tgtPath); SVNProperties sourceProps = null; if (srcPath != null) { FSRevisionNode sourceNode = srcRoot.getRevisionNode(srcPath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return; } sourceProps = sourceNode.getProperties(fsfs); } else { sourceProps = new SVNProperties(); } SVNProperties targetProps = targetNode.getProperties(fsfs); SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) { String propName = (String) names[i]; SVNPropertyValue propValue = propsDiffs.getSVNPropertyValue(propName); if (isDir) { editor.changeDirProperty(propName, propValue); } else { editor.changeFileProperty(editPath, propName, propValue); } } }
private static void deltifyProperties(FSFS fsfs, ISVNEditor editor, FSRevisionRoot srcRoot, FSRevisionRoot tgtRoot, String srcPath, String tgtPath, String editPath, boolean isDir) throws SVNException { FSRevisionNode targetNode = tgtRoot.getRevisionNode(tgtPath); SVNProperties sourceProps = null; if (srcPath != null) { FSRevisionNode sourceNode = srcRoot.getRevisionNode(srcPath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return; } sourceProps = sourceNode.getProperties(fsfs); } else { sourceProps = new SVNProperties(); } SVNProperties targetProps = targetNode.getProperties(fsfs); SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) { String propName = (String) names[i]; SVNPropertyValue propValue = propsDiffs.getSVNPropertyValue(propName); if (isDir) { editor.changeDirProperty(propName, propValue); } else { editor.changeFileProperty(editPath, propName, propValue); } } }
FSRevisionRoot sourceRoot = getSourceRoot(sourceRevision); FSRevisionNode sourceNode = sourceRoot.getRevisionNode(sourcePath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return;
FSRevisionRoot sourceRoot = getSourceRoot(sourceRevision); FSRevisionNode sourceNode = sourceRoot.getRevisionNode(sourcePath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return;
if (srcPath != null) { FSRevisionNode sourceNode = srcRoot.getRevisionNode(srcPath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return;
if (srcPath != null) { FSRevisionNode sourceNode = srcRoot.getRevisionNode(srcPath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return;
if (srcPath != null) { FSRevisionNode sourceNode = srcRoot.getRevisionNode(srcPath); boolean propsChanged = !FSRepositoryUtil.arePropertiesEqual(sourceNode, targetNode); if (!propsChanged) { return;