Class PlanVcsRevisionData


  • @PublicApi
    public class PlanVcsRevisionData
    extends Object
    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)
    • Constructor Detail

      • 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

        public PlanVcsRevisionData​(@NotNull
                                   @NotNull BuildRepositoryChanges buildRepositoryChanges)
      • PlanVcsRevisionData

        public PlanVcsRevisionData​(@Nullable
                                   @Nullable String vcsRevisionKey,
                                   @Nullable
                                   @Nullable String customXmlData,
                                   @Nullable
                                   @Nullable VcsBranch actualBranch)
    • Method Detail

      • getVcsRevisionKey

        @Nullable
        public @Nullable String getVcsRevisionKey()
      • getCustomXmlData

        @Nullable
        public @Nullable String getCustomXmlData()
      • getActualBranch

        @Nullable
        public @Nullable VcsBranch 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
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object