Class VcsChangesInterval


  • public class VcsChangesInterval
    extends Object
    Created 25.08.13 16:22
    Author:
    Eugene Petrenko (eugene.petrenko@jetbrains.com)
    • Constructor Detail

      • VcsChangesInterval

        public VcsChangesInterval()
    • Method Detail

      • setRepositoryStateManager

        public void setRepositoryStateManager​(RepositoryStateManager repositoryStateManager)
      • getLoadChangesInterval

        @Nullable
        public LoadChangesInterval getLoadChangesInterval​(@NotNull
                                                          LVcsRootInstance originalRoot,
                                                          @NotNull
                                                          LVcsRootInstance newRoot,
                                                          @NotNull
                                                          CurrentStateSnapshot snapshot)
        Returns load changes interval between two roots or null if there is a problem during getting a current state of newRoot
        Parameters:
        originalRoot -
        newRoot -
        snapshot -
        Returns:
        see above
      • getRootLoadChangesIntervals

        @NotNull
        public Map<LoadChangesInterval,​Collection<LVcsRootInstanceHolder>> getRootLoadChangesIntervals​(@NotNull
                                                                                                             LVcsRootInstance root,
                                                                                                             @NotNull
                                                                                                             CurrentStateSnapshot snapshot,
                                                                                                             @NotNull
                                                                                                             ChangesLoaderContext context)
        Returns a map (changes collecting interval-> affected build configurations) for given root, current state snapshot and context. A VCS root has several intervals when a parametrized parent VCS root was attached to several build configurations which have different parameter values and then parameters where changed to be the same. In this case we need to collect changes for each combination of an old VCS root instance to the new instance and attach them only to build configurations where the old root instance was attached.