Resource wcDir = new Resource(collection);
try {
WorkingCopy wc = new WorkingCopy("", "");
out().println( wc.update(wcDir, SVNRevision.HEAD, true) );
} catch (SVNException svne) {
svne.printStackTrace();
throw new CommandException(
"error while commiting a working copy to the repository '"
+ wcDir + "'", svne);