Interface MergeResultContext
- All Known Subinterfaces:
MergeResultSummary
- All Known Implementing Classes:
MergeResultContextImpl
,MergeResultSummaryImpl
@ExperimentalApi
public interface MergeResultContext
Represents results of branch integration.
-
Method Summary
Modifier and TypeMethodDescription@Nullable String
Branch name associated with this Plan Branch.@Nullable String
Depending on the integration strategy this could be the checked out revision or the merged revision Should be NotNull, but legacy data may exist that doesn't have this value.@Nullable String
@NotNull String
Depensing on the integration strategy this could be the checked out revision or the merged revision@Nullable String
The branch name associated with the integration repositorylong
@Nullable BranchIntegrationStrategy
Should not be null, however legacy data may exist that doesn't have this value.@Nullable String
@Nullable MergeResultState
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist@Nullable MergeResultState
The state of the push part of the integration strategy Should be NotNull but legacy data may existboolean
Has the branch integration failed at any point in the integration processboolean
void
setBranchName
(String branchName) void
setBranchTargetVcsKey
(String branchTargetVcsKey) void
setEmptyMerge
(boolean emptyMerge) void
setFailureReason
(String failureReason) void
setIntegrationBranchVcsKey
(String mergedRevisionKey) void
setIntegrationRepositoryBranchName
(String integrationRepositoryBranchName) void
setIntegrationRepositoryId
(long integrationRepositoryId) void
setIntegrationStrategy
(BranchIntegrationStrategy elemEnumValue) void
setMergeResultVcsKey
(String mergeResultVcsKey) void
setMergeState
(MergeResultState mergeState) void
setPushState
(MergeResultState pushState)
-
Method Details
-
getFailureReason
- Returns:
- reason of failure of merge or push operation
-
setFailureReason
-
getBranchTargetVcsKey
Depending on the integration strategy this could be the checked out revision or the merged revision Should be NotNull, but legacy data may exist that doesn't have this value.- Returns:
- The revision key used of the branch
-
setBranchTargetVcsKey
-
getIntegrationRepositoryId
long getIntegrationRepositoryId()- Returns:
- id of the integrated repository. This could be the checkout or merge repo depending on strategy
-
setIntegrationRepositoryId
void setIntegrationRepositoryId(long integrationRepositoryId) -
getIntegrationRepositoryBranchName
The branch name associated with the integration repository- Returns:
- A string representation of the branch at the time of integration.
-
setIntegrationRepositoryBranchName
-
getIntegrationBranchVcsKey
Depensing on the integration strategy this could be the checked out revision or the merged revision- Returns:
- revision key integrated into the branch
-
setIntegrationBranchVcsKey
-
getMergeResultVcsKey
- Returns:
- revision created by the merge process
-
setMergeResultVcsKey
-
isEmptyMerge
boolean isEmptyMerge()- Returns:
- true iff merge doesn't produce any changes that need to be committed
-
setEmptyMerge
void setEmptyMerge(boolean emptyMerge) -
getMergeState
The state of the merge part of the integration strategy Should be NotNull but legacy data may exist- Returns:
- MergeResultState representing the state of the merge
-
setMergeState
-
getPushState
The state of the push part of the integration strategy Should be NotNull but legacy data may exist- Returns:
- MergeResultState representing the state of the push
-
setPushState
-
hasFailed
boolean hasFailed()Has the branch integration failed at any point in the integration process- Returns:
- true if the integration has failed.
-
getIntegrationStrategy
Should not be null, however legacy data may exist that doesn't have this value.- Returns:
- The integration strategy used for his merge.
-
setIntegrationStrategy
-
getBranchName
Branch name associated with this Plan Branch.- Returns:
- a string representation of the branch at the time of integration
-
setBranchName
-