Interface MergeSupport

    • Method Detail

      • merge

        @NotNull
        MergeResult merge​(@NotNull
                          VcsRoot root,
                          @NotNull
                          String srcRevision,
                          @NotNull
                          String dstBranch,
                          @NotNull
                          String message,
                          @NotNull
                          MergeOptions options)
                   throws VcsException
        Merges specified revision in given VCS root into given destination branch with specified message and options.
        Parameters:
        root - VCS root of interest
        srcRevision - revision to merge
        dstBranch - vcs name of destination branch
        message - merge commit message to use
        options - merge options
        Throws:
        VcsException - in the case of significant errors, should not be thrown if merge fails
      • tryMerge

        @NotNull
        Map<MergeTask,​MergeResult> tryMerge​(@NotNull
                                                  VcsRoot root,
                                                  @NotNull
                                                  List<MergeTask> tasks,
                                                  @NotNull
                                                  MergeOptions options)
                                           throws VcsException
        Try to merge given merge tasks with specified options and return a map of merge result for each task. Result of the merge should not be published.
        Parameters:
        root - VCS root of interest
        tasks - merge targets
        options - merge options
        Returns:
        see above
        Throws:
        VcsException - in the case of significant errors, should not be thrown if merge fails