Package jetbrains.buildServer.vcs
Interface MergeSupport
-
- All Superinterfaces:
VcsExtension
public interface MergeSupport extends VcsExtension
Support for merge operation
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description MergeResult
merge(VcsRoot root, String srcRevision, String dstBranch, String message, MergeOptions options)
Merges specified revision in given VCS root into given destination branch with specified message and options.Map<MergeTask,MergeResult>
tryMerge(VcsRoot root, List<MergeTask> tasks, MergeOptions options)
Try to merge given merge tasks with specified options and return a map of merge result for each task.
-
-
-
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 interestsrcRevision
- revision to mergedstBranch
- vcs name of destination branchmessage
- merge commit message to useoptions
- 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 interesttasks
- merge targetsoptions
- merge options- Returns:
- see above
- Throws:
VcsException
- in the case of significant errors, should not be thrown if merge fails
-
-