Search in sources :

Example 1 with SVNRevisionRange

use of org.tmatesoft.svn.core.wc.SVNRevisionRange in project intellij-community by JetBrains.

the class BranchMerger method mergeNext.

public void mergeNext() throws VcsException {
    myAtStart = false;
    File destination = new File(myTargetPath);
    MergeClient client = myVcs.getFactory(destination).createMergeClient();
    SvnTarget source = SvnTarget.fromURL(mySourceUrl);
    if (mySupportsMergeInfo) {
        client.merge(source, destination, false, myReintegrate, createDiffOptions(), myHandler);
    } else {
        mySourceLatestRevision = resolveSourceLatestRevision();
        SVNRevisionRange range = new SVNRevisionRange(SVNRevision.create(mySourceCopyRevision), mySourceLatestRevision);
        client.merge(source, range, destination, Depth.UNKNOWN, false, false, true, createDiffOptions(), myHandler);
    }
}
Also used : SvnTarget(org.tmatesoft.svn.core.wc2.SvnTarget) SVNRevisionRange(org.tmatesoft.svn.core.wc.SVNRevisionRange) File(java.io.File)

Aggregations

File (java.io.File)1 SVNRevisionRange (org.tmatesoft.svn.core.wc.SVNRevisionRange)1 SvnTarget (org.tmatesoft.svn.core.wc2.SvnTarget)1