myCurrentFile.myIsTreeConflicted = isTreeConflicted[0];
}
protected void closeFile(String commitPath, boolean added, File wcFile, File file, SVNProperties propertyDiff, SVNProperties baseProperties,
File baseFile, boolean[] isTreeConflicted) throws SVNException {
SVNEventAction expectedAction = added ? SVNEventAction.UPDATE_ADD : SVNEventAction.UPDATE_UPDATE;
SVNStatusType[] type = {SVNStatusType.UNKNOWN, SVNStatusType.UNKNOWN};
try {
retrieveParent(wcFile, myIsDryRun);
} catch (SVNException e) {
if (e.getErrorMessage().getErrorCode() == SVNErrorCode.WC_NOT_LOCKED) {
if (myEventHandler != null) {
SVNEvent event = SVNEventFactory.createSVNEvent(wcFile,
SVNNodeKind.FILE, null, SVNRepository.INVALID_REVISION, SVNStatusType.MISSING,
SVNStatusType.UNKNOWN, null, SVNEventAction.SKIP, expectedAction, null, null);
myEventHandler.handleEvent(event, ISVNEventHandler.UNKNOWN);
}
return;
}
throw e;
}
if (file != null || !propertyDiff.isEmpty()) {
String baseMimeType = baseProperties.getStringValue(SVNProperty.MIME_TYPE);
String mimeType = propertyDiff.getStringValue(SVNProperty.MIME_TYPE);
if (added) {
type = getDiffCallback().fileAdded(commitPath,
file != null ? baseFile : null, file,
0, myRevision2, baseMimeType, mimeType,
baseProperties, propertyDiff, isTreeConflicted);
} else {
type = getDiffCallback().fileChanged(commitPath,
file != null ? baseFile : null, file,
myRevision1, myRevision2, baseMimeType, mimeType,
baseProperties, propertyDiff, isTreeConflicted);
}
}
if (myEventHandler != null) {
SVNNodeKind kind = SVNNodeKind.FILE;
SVNEventAction action;
KindActionState kas = (KindActionState) myDeletedPaths.get(wcFile);
if (kas != null) {
myDeletedPaths.remove(wcFile);
kind = kas.myKind;
type[0] = type[1] = kas.myStatus;