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 StringBranch name associated with this Plan Branch.@Nullable StringDepending 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 StringDepensing on the integration strategy this could be the checked out revision or the merged revision@Nullable StringThe branch name associated with the integration repositorylong@Nullable BranchIntegrationStrategyShould not be null, however legacy data may exist that doesn't have this value.@Nullable String@Nullable MergeResultStateThe state of the merge part of the integration strategy Should be NotNull but legacy data may exist@Nullable MergeResultStateThe state of the push part of the integration strategy Should be NotNull but legacy data may existbooleanHas the branch integration failed at any point in the integration processbooleanvoidsetBranchName(String branchName) voidsetBranchTargetVcsKey(String branchTargetVcsKey) voidsetEmptyMerge(boolean emptyMerge) voidsetFailureReason(String failureReason) voidsetIntegrationBranchVcsKey(String mergedRevisionKey) voidsetIntegrationRepositoryBranchName(String integrationRepositoryBranchName) voidsetIntegrationRepositoryId(long integrationRepositoryId) voidsetIntegrationStrategy(BranchIntegrationStrategy elemEnumValue) voidsetMergeResultVcsKey(String mergeResultVcsKey) voidsetMergeState(MergeResultState mergeState) voidsetPushState(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
-