jetbrains.buildServer.vcs
Interface ReverseCollectionChangesPolicyBase<TState>

All Superinterfaces:
ReverseCollectionChangesPolicy, VcsExtension
All Known Subinterfaces:
ReverseCollectChangesByCheckoutRules, ReverseCollectRepositoryChangesByCheckoutRules

public interface ReverseCollectionChangesPolicyBase<TState>
extends ReverseCollectionChangesPolicy

Collecting of changes checkout rules from a given version back to the past This is a base interface. VCS plugins are expected to implement one of it's inheritors

Since:
TC 8.0
Author:
Eugene Petrenko (eugene.petrenko@jetbrains.com)
See Also:
ReverseCollectChangesByCheckoutRules, ReverseCollectRepositoryChangesByCheckoutRules

Method Summary
 ReverseChangeCollectionResult<TState> collectChanges(VcsRoot root, java.util.Collection<TState> toVersions, CheckoutRules rules)
          This method is called to collect changes that were made before given version.
 

Method Detail

collectChanges

@NotNull
ReverseChangeCollectionResult<TState> collectChanges(@NotNull
                                                             VcsRoot root,
                                                             @NotNull
                                                             java.util.Collection<TState> toVersions,
                                                             @NotNull
                                                             CheckoutRules rules)
                                                     throws VcsException
This method is called to collect changes that were made before given version. Implementation is expected to return a reduced amount of changes for the call. In most casese such ammout could be easily inferred from plugin internals. We are not able to provide any limits to the returned changes set for the call from outside of plugin internals.

Parameters:
root - vcs-root
toVersion - starting version to collect changes back
rules - checkout rules
Returns:
collected changes info and start point for the next collectChanges(VcsRoot, java.util.Collection, CheckoutRules) call
Throws:
VcsException
Since:
TC 8.0