if (srcPegRevision == null) { srcPegRevision = SVNRevision.UNDEFINED;
if (dstRevision == null || !dstRevision.isValid()) { dstRevision = SVNRevision.WORKING;
    public SVNCommitInfo doCopy(String srcURL, SVNRevision srcPegRevision,            SVNRevision srcRevision, String dstURL, SVNRevision dstPegRevision,            boolean move, String commitMessage) throws SVNException {        if (srcRevision == null) {            srcRevision = SVNRevision.HEAD;        }        if (srcPegRevision == null) {            srcPegRevision = SVNRevision.UNDEFINED;        }        if (dstPegRevision == null) {            dstPegRevision = SVNRevision.UNDEFINED;        }        srcURL = validateURL(srcURL);        dstURL = validateURL(dstURL);        long srcRevNumber = getRevisionNumber(srcURL, srcRevision);        srcURL = getURL(srcURL, srcPegRevision, SVNRevision                .create(srcRevNumber));        dstURL = getURL(dstURL, dstPegRevision, SVNRevision.HEAD);        return url2urlCopy(srcURL, srcRevNumber, dstURL, commitMessage, move);    }