SVNNodeKind rootKind = repository.checkPath(root, -1);
if (rootKind == SVNNodeKind.UNKNOWN) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN,
"path with name '{0}' is unknown in the repository",
root);
throw new SVNException(err);
} else if (rootKind == SVNNodeKind.NONE) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN,
"path with name '{0}' is missing in the repository",
root);
throw new SVNException(err);
} else if (rootKind == SVNNodeKind.FILE) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNKNOWN,
"path with name '{0}' is a file, you need a directory",
root);
throw new SVNException(err);
} else if (rootKind == SVNNodeKind.DIR) {
ISVNEditor editor = repository.getCommitEditor(message, null, true, null);
if (root.length() == 1 && root.charAt(0) == '/') {
addProcess(repository, editor, root, "", child);
} else {