commitMessage = getCommitHandler().getCommitMessage(commitMessage, (SVNCommitItem[]) commitItems.toArray(new SVNCommitItem[commitItems.size()]));
if (commitMessage == null) {
return SVNCommitInfo.NULL;
}
commitMessage = SVNCommitUtil.validateCommitMessage(commitMessage);
ISVNEditor commitEditor = repos.getCommitEditor(commitMessage, null, true, revisionProperties, null);
try {
commitEditor.openRoot(revNumber);
if (kind == SVNNodeKind.FILE) {
commitEditor.openFile("", revNumber);
commitEditor.changeFileProperty("", propName, propValue);
commitEditor.closeFile("", null);
} else {
commitEditor.changeDirProperty(propName, propValue);
}
commitEditor.closeDir();
} catch (SVNException svne) {
commitEditor.abortEdit();
}
if (handler != null) {
handler.handleProperty(url, new SVNPropertyData(propName, propValue, getOptions()));
}
return commitEditor.closeEdit();
}