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); } } }
SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) {
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); } } }
SVNProperties propDiff = FSRepositoryUtil.getPropsDiffs(oldProps, newProps); for (Iterator propNames = propDiff.nameSet().iterator(); propNames.hasNext();) { String propName = (String) propNames.next();
SVNProperties propDiff = FSRepositoryUtil.getPropsDiffs(lastProps, props); SVNFileRevision fileRevision = new SVNFileRevision(rev.myPath, rev.myRevision, rev.myProperties, propDiff, false);
SVNProperties propDiff = FSRepositoryUtil.getPropsDiffs(lastProps, props); SVNFileRevision fileRevision = new SVNFileRevision(rev.myPath, rev.myRevision, rev.myProperties, propDiff, false);
SVNProperties propDiff = FSRepositoryUtil.getPropsDiffs(lastProps, props); SVNFileRevision fileRevision = new SVNFileRevision(rev.myPath, rev.myRevision, rev.myProperties, propDiff, false);
SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) {
SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) {
SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) {
SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) {
SVNProperties propsDiffs = FSRepositoryUtil.getPropsDiffs(sourceProps, targetProps); Object[] names = propsDiffs.nameSet().toArray(); for (int i = 0; i < names.length; i++) {
baseProps = baseNode.getProperties(baseRoot.getOwner()); SVNProperties propsDiff = FSRepositoryUtil.getPropsDiffs(baseProps, props); if (propsDiff.size() > 0) { String displayPath = path.startsWith("/") ? path.substring(1) : path;
baseProps = baseNode.getProperties(baseRoot.getOwner()); propsDiff = FSRepositoryUtil.getPropsDiffs(baseProps, props); if (propsDiff.size() > 0) { displayPath = path.startsWith("/") ? path.substring(1) : path;
baseProps = baseNode.getProperties(baseRoot.getOwner()); SVNProperties propsDiff = FSRepositoryUtil.getPropsDiffs(baseProps, props); if (propsDiff.size() > 0) { String displayPath = path.startsWith("/") ? path.substring(1) : path;
FSRevisionNode fileNode = root.getRevisionNode(pathRevision.getPath()); SVNProperties props = fileNode.getProperties(myFSFS); SVNProperties propDiffs = FSRepositoryUtil.getPropsDiffs(sendBaton.myLastProps, props); boolean contentsChanged = false; if (sendBaton.myLastRoot != null) {
FSRevisionNode fileNode = root.getRevisionNode(pathRevision.getPath()); SVNProperties props = fileNode.getProperties(myFSFS); SVNProperties propDiffs = FSRepositoryUtil.getPropsDiffs(sendBaton.myLastProps, props); boolean contentsChanged = false; if (sendBaton.myLastRoot != null) {
FSRevisionNode fileNode = root.getRevisionNode(pathRevision.getPath()); SVNProperties props = fileNode.getProperties(myFSFS); SVNProperties propDiffs = FSRepositoryUtil.getPropsDiffs(sendBaton.myLastProps, props); boolean contentsChanged = false; if (sendBaton.myLastRoot != null) {
SVNProperties diffs = FSRepositoryUtil.getPropsDiffs(workingProps, baseProps); if (diffs.isEmpty()) workingProps.clear();