String message;
switch (myCurrentNodeBaton.myAction) {
case SVNAdminHelper.NODE_ACTION_CHANGE:
message = " * editing path : " + myCurrentNodeBaton.myPath + " ...";
if (myProgressHandler != null) {
SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.REVISION_LOAD_EDIT_PATH, myCurrentNodeBaton.myPath, message);
myProgressHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN);
}
break;
case SVNAdminHelper.NODE_ACTION_DELETE:
message = " * deleting path : " + myCurrentNodeBaton.myPath + " ...";
if (myProgressHandler != null) {
SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.REVISION_LOAD_DELETE_PATH, myCurrentNodeBaton.myPath, message);
myProgressHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN);
}
myCurrentRevisionBaton.getCommitter().deleteNode(myCurrentNodeBaton.myPath);
break;
case SVNAdminHelper.NODE_ACTION_ADD:
message = " * adding path : " + myCurrentNodeBaton.myPath + " ...";
if (maybeAddWithHistory(myCurrentNodeBaton)) {
message += "COPIED...";
}
if (myProgressHandler != null) {
SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.REVISION_LOAD_ADD_PATH, myCurrentNodeBaton.myPath, message);
myProgressHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN);
}
break;
case SVNAdminHelper.NODE_ACTION_REPLACE:
message = " * replacing path : " + myCurrentNodeBaton.myPath + " ...";
myCurrentRevisionBaton.getCommitter().deleteNode(myCurrentNodeBaton.myPath);
if (maybeAddWithHistory(myCurrentNodeBaton)) {
message += "COPIED...";
}
if (myProgressHandler != null) {
SVNAdminEvent event = new SVNAdminEvent(SVNAdminEventAction.REVISION_LOAD_REPLACE_PATH, myCurrentNodeBaton.myPath, message);
myProgressHandler.handleAdminEvent(event, ISVNEventHandler.UNKNOWN);
}
break;
default:
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.STREAM_UNRECOGNIZED_DATA, "Unrecognized node-action on node ''{0}''", myCurrentNodeBaton.myPath);