private boolean propsMatch(SVNProperties srcProps, SVNProperties dstProps) { if (srcProps == null && dstProps == null) { return true; } else if (srcProps != null || dstProps != null) { return false; } else { SVNProperties diff = dstProps.compareTo(srcProps); return diff != null && diff.size() > 0 ? false : true; } }
private boolean arePropsTheSame(SVNProperties props1, SVNProperties props2) { SVNProperties propsDiff = props2.compareTo(props1); SVNProperties regularPropsDiff = new SVNProperties(); categorizeProperties(propsDiff, regularPropsDiff, null, null); for (Iterator propNamesIter = regularPropsDiff.nameSet().iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); if (!SVNProperty.MERGE_INFO.equals(propName)) { return false; } } return true; }
private boolean arePropsTheSame(SVNProperties props1, SVNProperties props2) { SVNProperties propsDiff = props2.compareTo(props1); SVNProperties regularPropsDiff = new SVNProperties(); categorizeProperties(propsDiff, regularPropsDiff, null, null); for (Iterator propNamesIter = regularPropsDiff.nameSet().iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); if (!SVNProperty.MERGE_INFO.equals(propName)) { return false; } } return true; }
private boolean arePropertiesSame(SVNProperties originalProps, SVNProperties workingProps) { SVNProperties propDiff = originalProps == null ? workingProps : originalProps.compareTo(workingProps); Set<String> propNames = propDiff.nameSet(); for (String propName : propNames) { if (SVNProperty.isRegularProperty(propName) && !SVNProperty.MERGE_INFO.equals(propName)) { return false; } } return true; }
private boolean compareProps(SVNProperties p1, SVNProperties p2) throws SVNException { if (p1 == null || p2 == null) { return p1 == p2; } SVNProperties diff = p1.compareTo(p2); for (String propName : diff.nameSet()) { if (SVNProperty.isRegularProperty(propName) && !SVNProperty.MERGE_INFO.equals(propName)) { return false; } } return true; }
private boolean arePropsTheSame(SVNProperties props1, SVNProperties props2) { SVNProperties propsDiff = props2.compareTo(props1); SVNProperties regularPropsDiff = new SVNProperties(); categorizeProperties(propsDiff, regularPropsDiff, null, null); for (Iterator propNamesIter = regularPropsDiff.nameSet().iterator(); propNamesIter.hasNext();) { String propName = (String) propNamesIter.next(); if (!SVNProperty.MERGE_INFO.equals(propName)) { return false; } } return true; }
public void dirAdded(SvnDiffCallbackResult result, File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, SVNProperties copyFromProps, SVNProperties rightProps, Object dirBaton) throws SVNException { if (copyFromSource != null) { SVNProperties propChanges = copyFromProps.compareTo(rightProps); delegate.dirChanged(result, relPath, copyFromSource, rightSource, copyFromProps, rightProps, propChanges, dirBaton); } else { delegate.dirAdded(result, relPath, copyFromSource, rightSource, copyFromProps, rightProps, dirBaton); } }
public void fileChanged(SvnDiffCallbackResult result, File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, File leftFile, File rightFile, SVNProperties leftProps, SVNProperties rightProps, boolean fileModified, SVNProperties propChanges) throws SVNException { if (prefixRelPath != null) { relPath = SVNFileUtil.createFilePath(prefixRelPath, SVNFileUtil.getFilePath(relPath)); } SVNProperties reversedPropChanges = null; if (propChanges != null) { assert leftProps != null && rightProps != null; reversedPropChanges = rightProps.compareTo(leftProps); } delegate.fileChanged(result, relPath, rightSource, leftSource, rightFile, leftFile, rightProps, leftProps, fileModified, reversedPropChanges); }
public void dirChanged(SvnDiffCallbackResult result, File relPath, SvnDiffSource leftSource, SvnDiffSource rightSource, SVNProperties leftProps, SVNProperties rightProps, SVNProperties propChanges, Object dirBaton) throws SVNException { if (prefixRelPath != null) { relPath = SVNFileUtil.createFilePath(prefixRelPath, SVNFileUtil.getFilePath(relPath)); } SVNProperties reversedPropChanges = null; if (propChanges != null) { assert leftProps != null && rightProps != null; reversedPropChanges = rightProps.compareTo(leftProps); } delegate.dirChanged(result, relPath, rightSource, leftSource, rightProps, leftProps, reversedPropChanges, dirBaton); }
public void fileAdded(SvnDiffCallbackResult result, File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, File copyFromFile, File rightFile, SVNProperties copyFromProps, SVNProperties rightProps) throws SVNException { if (copyFromSource != null) { SVNProperties propChanges = copyFromProps.compareTo(rightProps); boolean same; if (copyFromFile != null && rightFile != null) { same = SVNFileUtil.compareFiles(copyFromFile, rightFile, null); } else { same = false; } delegate.fileChanged(result, relPath, copyFromSource, rightSource, copyFromFile, rightFile, copyFromProps, rightProps, !same, propChanges); } else { delegate.fileAdded(result, relPath, copyFromSource, rightSource, copyFromFile, rightFile, copyFromProps, rightProps); } }
public SVNVersionedProperties compareTo(SVNVersionedProperties properties) throws SVNException { SVNProperties theseProps = loadProperties(); if (theseProps == null) { return wrap(new SVNProperties()); } return wrap(theseProps.compareTo(properties.loadProperties())); }
public SVNVersionedProperties compareTo(SVNVersionedProperties properties) throws SVNException { SVNProperties theseProps = loadProperties(); if (theseProps == null) { return wrap(new SVNProperties()); } return wrap(theseProps.compareTo(properties.loadProperties())); }
public SVNVersionedProperties compareTo(SVNVersionedProperties properties) throws SVNException { SVNProperties theseProps = loadProperties(); if (theseProps == null) { return wrap(new SVNProperties()); } return wrap(theseProps.compareTo(properties.loadProperties())); }
public void dirAdded(SvnDiffCallbackResult result, File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, SVNProperties copyFromProps, SVNProperties rightProps, Object dirBaton) throws SVNException { SVNProperties pristineProps = copyFromProps; if (rightProps != null && rightProps.size() > 0) { if (pristineProps == null) { pristineProps = new SVNProperties(); } SVNProperties propChanges = pristineProps.compareTo(rightProps); callback.dirPropsChanged(result, getAbsPath(relPath), true, propChanges, pristineProps); } callback.dirClosed(result, getAbsPath(relPath), true); }
public void fileAdded(SvnDiffCallbackResult result, File relPath, SvnDiffSource copyFromSource, SvnDiffSource rightSource, File copyFromFile, File rightFile, SVNProperties copyFromProps, SVNProperties rightProps) throws SVNException { if (copyFromProps == null) { copyFromProps = new SVNProperties(); } SVNProperties propChanges = copyFromProps.compareTo(rightProps); callback.fileAdded(result, getAbsPath(relPath), copyFromSource != null ? copyFromFile : null, rightFile, 0, rightSource.getRevision(), copyFromProps != null ? copyFromProps.getStringValue(SVNProperty.MIME_TYPE) : null, rightProps != null ? rightProps.getStringValue(SVNProperty.MIME_TYPE) : null, copyFromSource != null ? copyFromSource.getReposRelPath() : null, copyFromSource != null ? copyFromSource.getRevision() : SVNRepository.INVALID_REVISION, propChanges, copyFromProps); }
SVNProperties propDiff = baseProps.compareTo(wcContext.getActualProps(fullPath)); getDiffCallback().dirPropsChanged(getDiffCallbackResult(), new File(getWorkingCopyRoot(), info.path), info.isAdded, propDiff, baseProps);
localProps = db.readProperties(currentEntry.localAbspath); SVNProperties propChanges = reposProps.compareTo(localProps); if (propChanges.size() > 0) { result.reset();
SVNProperties unmodifiableProperties = SVNProperties.unmodifiableProperties(properties); SVNProperties changedProperties = propertyValueProvider.providePropertyValues(path, unmodifiableProperties); SVNProperties propDiff = properties.compareTo(changedProperties); for (Iterator iterator = propDiff.nameSet().iterator(); iterator.hasNext();) { String propName = (String) iterator.next();
SVNProperties unmodifiableProperties = SVNProperties.unmodifiableProperties(properties); SVNProperties changedProperties = propertyValueProvider.providePropertyValues(path, unmodifiableProperties); SVNProperties propDiff = properties.compareTo(changedProperties);
SVNProperties unmodifiableProperties = SVNProperties.unmodifiableProperties(properties); SVNProperties changedProperties = propertyValueProvider.providePropertyValues(path, unmodifiableProperties); SVNProperties propDiff = properties.compareTo(changedProperties);