private static boolean hasNullValues(SVNProperties props) { if (props.isEmpty()) { return false; } return props.containsValue(null); }
private static boolean hasNullValues(SVNProperties props) { if (props.isEmpty()) { return false; } return props.containsValue(null); }
private static boolean hasNullValues(SVNProperties props) { if (props.isEmpty()) { return false; } return props.containsValue(null); }
public boolean isEmpty() throws SVNException { SVNProperties props = loadProperties(); return props == null || props.isEmpty(); }
public boolean isEmpty() throws SVNException { SVNProperties props = loadProperties(); return props == null || props.isEmpty(); }
public boolean isEmpty() throws SVNException { SVNProperties props = loadProperties(); return props == null || props.isEmpty(); }
public SVNStatusType[] fileChanged(String path, File file1, File file2, long revision1, long revision2, String mimeType1, String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { if (file1 != null) { displayFileDiff(path, file1, file2, revision1, revision2, mimeType1, mimeType2, originalProperties, diff); } if (diff != null && !diff.isEmpty()) { propertiesChanged(path, originalProperties, diff, null); } return EMPTY_STATUS; }
public SVNStatusType[] fileAdded(String path, File file1, File file2, long revision1, long revision2, String mimeType1, String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { if (file2 != null) { displayFileDiff(path, null, file2, revision1, revision2, mimeType1, mimeType2, originalProperties, diff); } if (diff != null && !diff.isEmpty()) { propertiesChanged(path, originalProperties, diff, null); } return EMPTY_STATUS; }
private static boolean hasNotNullValues(SVNProperties props) { if (props.isEmpty()) { return false; } if (!hasNullValues(props)) { return true; } for (Iterator entries = props.nameSet().iterator(); entries.hasNext();) { String propName = (String) entries.next(); if (props.getSVNPropertyValue(propName) != null) { return true; } } return false; }
public SVNStatusType[] fileChanged(String path, File file1, File file2, long revision1, long revision2, String mimeType1, String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { if (file1 != null) { displayFileDiff(path, file1, file2, revision1, revision2, mimeType1, mimeType2, originalProperties, diff); } if (diff != null && !diff.isEmpty()) { propertiesChanged(path, originalProperties, diff, null); } return EMPTY_STATUS; }
public void fileChanged(SvnDiffCallbackResult result, File path, File leftFile, File rightFile, long rev1, long rev2, String mimeType1, String mimeType2, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException { if (leftFile != null) { displayContentChanged(path, leftFile, rightFile, rev1, rev2, mimeType1, mimeType2, propChanges, originalProperties, OperationKind.Modified, null); } if (propChanges != null && !propChanges.isEmpty()) { propertiesChanged(path, rev1, rev2, false, propChanges, originalProperties); } }
private static boolean hasNotNullValues(SVNProperties props) { if (props.isEmpty()) { return false; } if (!hasNullValues(props)) { return true; } for (Iterator entries = props.nameSet().iterator(); entries.hasNext();) { String propName = (String) entries.next(); if (props.getSVNPropertyValue(propName) != null) { return true; } } return false; }
public SVNStatusType[] fileAdded(String path, File file1, File file2, long revision1, long revision2, String mimeType1, String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { if (!myGenerator.isDiffAdded()) { return EMPTY_STATUS; } if (file2 != null) { displayFileDiff(path, null, file2, revision1, revision2, mimeType1, mimeType2, originalProperties, diff); } if (diff != null && !diff.isEmpty()) { propertiesChanged(path, originalProperties, diff, null); } return EMPTY_STATUS; }
public SVNStatusType propertiesChanged(String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { originalProperties = originalProperties == null ? new SVNProperties() : originalProperties; diff = diff == null ? new SVNProperties() : diff; SVNProperties regularDiff = new SVNProperties(); categorizeProperties(diff, regularDiff, null, null); if (diff.isEmpty()) { return SVNStatusType.UNKNOWN; } myGenerator.displayPropDiff(getDisplayPath(path), originalProperties, regularDiff, myResult); return SVNStatusType.UNKNOWN; }
public SVNStatusType propertiesChanged(String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { originalProperties = originalProperties == null ? new SVNProperties() : originalProperties; diff = diff == null ? new SVNProperties() : diff; SVNProperties regularDiff = new SVNProperties(); categorizeProperties(diff, regularDiff, null, null); if (regularDiff.isEmpty()) { return SVNStatusType.UNKNOWN; } myGenerator.displayPropDiff(getDisplayPath(path), originalProperties, regularDiff, myResult); return SVNStatusType.UNKNOWN; }
public SVNStatusType propertiesChanged(String path, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { originalProperties = originalProperties == null ? new SVNProperties() : originalProperties; diff = diff == null ? new SVNProperties() : diff; SVNProperties regularDiff = new SVNProperties(); categorizeProperties(diff, regularDiff, null, null); if (diff.isEmpty()) { return SVNStatusType.UNKNOWN; } myGenerator.displayPropDiff(getDisplayPath(path), originalProperties, regularDiff, myResult); return SVNStatusType.UNKNOWN; }
public void propertiesChanged(File path, long revision1, long revision2, boolean dirWasAdded, SVNProperties diff, SVNProperties originalProperties) throws SVNException { originalProperties = originalProperties == null ? new SVNProperties() : originalProperties; diff = diff == null ? new SVNProperties() : diff; SVNProperties regularDiff = getRegularProperties(diff); if (regularDiff != null && !regularDiff.isEmpty()) { generator.displayPropsChanged(getTarget(path), getRevisionString(revision1), getRevisionString(revision2), dirWasAdded, originalProperties, regularDiff, outputStream); } }
public SVNStatusType[] fileChanged(String path, File file1, File file2, long revision1, long revision2, String mimeType1, String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { if (file1 != null) { boolean useDefaultEncoding = defineEncoding(originalProperties, diff); myGenerator.displayFileDiff(getDisplayPath(path), file1, file2, getRevision(revision1), getRevision(revision2), mimeType1, mimeType2, myResult); if (!useDefaultEncoding) { myGenerator.setEncoding(null); } } if (diff != null && !diff.isEmpty()) { propertiesChanged(path, originalProperties, diff, null); } return EMPTY_STATUS; }
public SVNStatusType[] fileAdded(String path, File file1, File file2, long revision1, long revision2, String mimeType1, String mimeType2, SVNProperties originalProperties, SVNProperties diff, boolean[] isTreeConflicted) throws SVNException { if (file2 != null) { boolean useDefaultEncoding = defineEncoding(originalProperties, diff); myGenerator.displayFileDiff(getDisplayPath(path), null, file2, getRevision(revision1), getRevision(revision2), mimeType1, mimeType2, myResult); if (!useDefaultEncoding) { myGenerator.setEncoding(null); } } if (diff != null && !diff.isEmpty()) { propertiesChanged(path, originalProperties, diff, null); } return EMPTY_STATUS; }
public void dirPropsChanged(SvnDiffCallbackResult result, File path, boolean dirWasAdded, SVNProperties propChanges, SVNProperties originalProperties) throws SVNException { originalProperties = originalProperties == null ? new SVNProperties() : originalProperties; propChanges = propChanges == null ? new SVNProperties() : propChanges; SVNProperties regularDiff = getRegularProperties(propChanges); if (regularDiff == null || regularDiff.isEmpty()) { return; } generator.displayPropsChanged(getTarget(path), dirWasAdded ? getRevisionString(NON_EXSTENT_REVISION) : getRevisionString(revision1), getRevisionString(revision2), dirWasAdded, originalProperties, regularDiff, outputStream); }