Class CommonBranchSpec


  • public class CommonBranchSpec
    extends Object
    • Constructor Detail

      • CommonBranchSpec

        public CommonBranchSpec()
    • Method Detail

      • filterStateForChangesCollecting

        @NotNull
        public RepositoryState filterStateForChangesCollecting​(@NotNull
                                                               Set<? extends LVcsRootInstanceHolder> buildTypes,
                                                               @NotNull
                                                               LVcsRootInstance root,
                                                               @NotNull
                                                               RepositoryState state,
                                                               @NotNull
                                                               Collection<BranchSpec> settingsBranchSpecs)
        Returns repository state containing branches matched at least by one current branch spec of given VCS root in the specified build types or any of the settings branch spec + additional branches for changes collecting from extensions
        Parameters:
        buildTypes - buildTypes of interest
        root - VCS root of interest
        state - repository state to filter
        settingsBranchSpecs - branch specs for the specified VSC root if it is used for storing versioned settings
        Returns:
        see above
      • apply

        @NotNull
        public RepositoryState apply​(@NotNull
                                     Map<? extends LVcsRootInstanceHolder,​BranchSpec> buildTypeBranchSpecs,
                                     @NotNull
                                     LVcsRootInstance root,
                                     @NotNull
                                     RepositoryState state,
                                     @NotNull
                                     Collection<BranchSpec> settingsBranchSpecs)
        Returns repository state containing branches matched at least one provided branch spec of given VCS root or any of the settings branch specs + additional branches matched by extensions
        Parameters:
        buildTypeBranchSpecs - map of branch specs to use instead of current branch spec
        root - VCS root of interest
        state - repository state to filter
        settingsBranchSpecs - branch specs for the specified VSC root if it is used for storing versioned settings
        Returns:
        see above