Class PlanVcsRevisionData
java.lang.Object
com.atlassian.bamboo.plan.vcsRevision.PlanVcsRevisionData
Class representing revision data using in change detection.
Data consist of:
- vcsRevisionKey (null values allowed when no change detection history exists for repository; not-null otherwise)
- customXmlData (optional; only used by certain repositories, e.g. SVN with externals enabled)
- overriddenBranch (optional: only used by Git repository currently, custom revision build)
-
Field Summary
-
Constructor Summary
ConstructorDescriptionPlanVcsRevisionData
(@NotNull BuildRepositoryChanges buildRepositoryChanges) PlanVcsRevisionData
(@Nullable String vcsRevisionKey, @Nullable String customXmlData) Deprecated.since 5.14 you should always set actual branch if it can be donePlanVcsRevisionData
(@Nullable String vcsRevisionKey, @Nullable String customXmlData, @Nullable VcsBranch actualBranch) -
Method Summary
-
Field Details
-
NULL_REVISION
-
-
Constructor Details
-
PlanVcsRevisionData
@Deprecated public PlanVcsRevisionData(@Nullable @Nullable String vcsRevisionKey, @Nullable @Nullable String customXmlData) Deprecated.since 5.14 you should always set actual branch if it can be done- Parameters:
vcsRevisionKey
-customXmlData
-
-
PlanVcsRevisionData
-
PlanVcsRevisionData
-
-
Method Details
-
getVcsRevisionKey
-
getCustomXmlData
-
getActualBranch
Vcs branch on which change actually is. It can be different from repository's configured branch under some circumstances. Can be null if the change is NULL_REVISION object or branching is not supported.- Returns:
- vcs branch or null
- Since:
- 5.14
-
getOverriddenBranch
Deprecated.since 5.14 usegetActualBranch()
- Returns:
-
equals
-
hashCode
public int hashCode()
-