}
SVNCommitPacket[] packets = null;
SVNCommitInfo[] commitResults = null;
try {
client.setCommitHandler(createCommitMessageHandler(false));
SVNDepth svnDepth = SVNDepth.fromID(depth);
boolean recurse = SVNDepth.recurseFromDepth(svnDepth);
packets = client.doCollectCommitItems(files, noUnlock, !recurse, svnDepth, atomicCommit, changlelists);
commitResults = client.doCommit(packets, noUnlock, keepChangelist, message, revprops != null ? SVNProperties.wrap(revprops) : null);
} catch (SVNException e) {
throwException(e);