SVNClientManager clientManager = SVNClientManager.newInstance();
SVNURL reposURL = SVNURL.fromFile(reposRoot);
//copy A to A_copy in repository (url-to-url copy)
SVNCopyClient copyClient = clientManager.getCopyClient();
SVNURL A_URL = reposURL.appendPath("A", true);
SVNURL copyTargetURL = reposURL.appendPath("A_copy", true);
SVNCopySource copySource = new SVNCopySource(SVNRevision.UNDEFINED, SVNRevision.HEAD, A_URL);
info = copyClient.doCopy(new SVNCopySource[] { copySource }, copyTargetURL, false, false, true,
"copy A to A_copy", null);
//print out new revision info
System.out.println(info);
//checkout the entire repository tree