Search in sources :

Example 1 with BranchOperation

use of com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.BranchOperation in project intellij-community by JetBrains.

the class CommandCvsHandler method createBranchHandler.

public static CvsHandler createBranchHandler(FilePath[] selectedFiles, String branchName, boolean switchToThisBranch, boolean overrideExisting, boolean makeNewFilesReadOnly, Project project) {
    final CompositeOperation operation = new CompositeOperation();
    operation.addOperation(new BranchOperation(selectedFiles, branchName, overrideExisting));
    if (switchToThisBranch) {
        operation.addOperation(new UpdateOperation(selectedFiles, branchName, makeNewFilesReadOnly, project));
    }
    return new CommandCvsHandler(CvsBundle.message("operation.name.create.branch"), operation, FileSetToBeUpdated.selectedFiles(selectedFiles));
}
Also used : BranchOperation(com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.BranchOperation) UpdateOperation(com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation)

Aggregations

BranchOperation (com.intellij.cvsSupport2.cvsoperations.cvsTagOrBranch.BranchOperation)1 UpdateOperation (com.intellij.cvsSupport2.cvsoperations.cvsUpdate.UpdateOperation)1