public SVNCommitInfo doCopy(File srcPath, SVNRevision srcRevision, SVNURL dstURL, boolean failWhenDstExists, String commitMessage) throws SVNException {
// may be url->url.
srcPath = new File(SVNPathUtil.validateFilePath(srcPath.getAbsolutePath()));
if (srcRevision.isValid() && srcRevision != SVNRevision.WORKING) {
SVNWCAccess wcAccess = createWCAccess();
wcAccess.probeOpen(srcPath, false, 0);
SVNEntry srcEntry = wcAccess.getEntry(srcPath, false);
wcAccess.close();
if (srcEntry == null) {
SVNErrorMessage err = SVNErrorMessage.create(SVNErrorCode.UNVERSIONED_RESOURCE, "''{0}'' is not under version control", srcPath);