Interface VcsSettingsTracker

  • All Superinterfaces:
    LVcsSettingsTracker
    All Known Implementing Classes:
    VcsSettingsTrackerImpl

    public interface VcsSettingsTracker
    extends LVcsSettingsTracker
    Associates VCS revision with VCS settings in a build type. VCS revision is updated only if VCS settings change. This service holds first revision detected by VCS for current VCS settings.
    • Method Detail

      • forgetSettingsRevisions

        void forgetSettingsRevisions​(@NotNull
                                     SBuildType buildType,
                                     @NotNull
                                     SVcsRoot parentRoot)
        Forgets VCS settings revisions for the specified build type and vcs root.
        Parameters:
        buildType - build type
        vcsRoot - vcs root
      • forgetSettingsRevisions

        void forgetSettingsRevisions​(@NotNull
                                     SBuildType buildType)
        Forgets all VCS settings revisions stored for the specified build type
        Parameters:
        buildType - build type
      • settingsChanged

        @NotNull
        VcsModificationOrder settingsChanged​(@NotNull
                                             SBuildType buildType,
                                             @NotNull
                                             VcsRootInstanceEntry vcsRootEntry,
                                             @NotNull
                                             String revision)
        Compares specified revision and revision of the first checking for changes made with the specified build configuration and VCS root instance. This method works for linear VCS roots only. For DAG based VCS roots the result is always VcsModificationOrder.UNKNOWN.
        • If revision of the first checking for changes was made before the specified revision returns VcsModificationOrder.BEFORE.
        • If revision of the first checking for changes was made after the specified revision, returns VcsModificationOrder.AFTER.
        • If for some reason revisions cannot be compared returns VcsModificationOrder.UNKNOWN.
        Parameters:
        buildType - build type
        vcsRoot - vcs root
        revision - revision to compare
        Returns:
        see above
      • getFirstRevision

        @Nullable
        String getFirstRevision​(@NotNull
                                SBuildType buildType,
                                @NotNull
                                VcsRootInstanceEntry entry,
                                @NotNull
                                String vcsBranch)
        Returns first revision detected in branch for the given buildType, VCS root entry and the vcs branch or null if no revision is found
        Parameters:
        buildType - buildType of interest
        entry - root entry of interest
        vcsBranch - vcs branch name
        Returns:
        see above