jetbrains.buildServer.vcs
Interface CollectChangesBetweenRepositories

All Superinterfaces:
CollectChangesPolicy, CollectRepositoryChangesByCheckoutRules, CollectRepositoryChangesPolicy, VcsExtension

public interface CollectChangesBetweenRepositories
extends CollectRepositoryChangesPolicy, CollectRepositoryChangesByCheckoutRules

Policy for collecting changes between repositories

Since:
7.0
Author:
dmitry.neverov

Method Summary
 java.util.List<ModificationData> collectChanges(VcsRoot fromRepository, RepositoryStateData fromState, VcsRoot toRepository, RepositoryStateData toState, CheckoutRules checkoutRules)
          Collect changes between repositories.
 
Methods inherited from interface jetbrains.buildServer.vcs.CollectRepositoryChangesByCheckoutRules
collectChanges
 
Methods inherited from interface jetbrains.buildServer.vcs.CollectRepositoryChangesPolicy
getCurrentState
 

Method Detail

collectChanges

@NotNull
java.util.List<ModificationData> collectChanges(@NotNull
                                                        VcsRoot fromRepository,
                                                        @NotNull
                                                        RepositoryStateData fromState,
                                                        @NotNull
                                                        VcsRoot toRepository,
                                                        @NotNull
                                                        RepositoryStateData toState,
                                                        @NotNull
                                                        CheckoutRules checkoutRules)
                                                throws VcsException
Collect changes between repositories. FromRepository and fromState should be used to determine a starting point in the toRepository, from which changes should be collected. If fromRepository and toRepository are not related to each other, i.e. there is no meaningful way to collect changes between them - implementation should return an empty collection. Returned modifications should belong to the toRepository.

Parameters:
fromRepository - repository from which to collect changes
fromState - start point for collecting changes in fromRepository
toRepository - root to which changes should be collected
toState - end point for collecting changes in toRepository
checkoutRules - rules
Returns:
collected changes
Throws:
VcsException - in the case of any errors