Package jetbrains.buildServer.vcs.impl
Class VcsChangesInterval
- java.lang.Object
-
- jetbrains.buildServer.vcs.impl.VcsChangesInterval
-
public class VcsChangesInterval extends Object
Created 25.08.13 16:22- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description VcsChangesInterval()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LoadChangesInterval
getIntervalWithStates(VcsRootInstancePair noStatesInterval, CurrentStateSnapshot snapshot)
LoadChangesInterval
getLoadChangesInterval(LVcsRootInstance originalRoot, LVcsRootInstance newRoot, CurrentStateSnapshot snapshot)
Returns load changes interval between two roots or null if there is a problem during getting a current state of newRootMap<LoadChangesInterval,Collection<LVcsRootInstanceHolder>>
getRootLoadChangesIntervals(LVcsRootInstance root, CurrentStateSnapshot snapshot, ChangesLoaderContext context)
Returns a map (changes collecting interval-> affected build configurations) for given root, current state snapshot and context.void
setBuildTypeToInstanceCache(VcsChangesLoaderPreviousVcsRootInstancesCache buildTypeToInstanceCache)
void
setRepositoryStateManager(RepositoryStateManager repositoryStateManager)
-
-
-
Method Detail
-
setBuildTypeToInstanceCache
public void setBuildTypeToInstanceCache(VcsChangesLoaderPreviousVcsRootInstancesCache buildTypeToInstanceCache)
-
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.
-
getIntervalWithStates
@NotNull public LoadChangesInterval getIntervalWithStates(@NotNull VcsRootInstancePair noStatesInterval, @NotNull CurrentStateSnapshot snapshot)
-
-