Class SingleVersionCollectChangesCommand


  • public abstract class SingleVersionCollectChangesCommand
    extends CollectChangesCommand
    Created 12.12.13 16:37
    Author:
    Eugene Petrenko (eugene.petrenko@jetbrains.com)
    • Constructor Detail

      • SingleVersionCollectChangesCommand

        public SingleVersionCollectChangesCommand()
    • Method Detail

      • collectChanges

        public final void collectChanges​(@Nullable
                                         VcsRoot fromRepository,
                                         @NotNull
                                         RepositoryStateData fromState,
                                         @NotNull
                                         VcsRoot toRepository,
                                         @NotNull
                                         RepositoryStateData toState,
                                         @NotNull
                                         CheckoutRules checkoutRules,
                                         @NotNull
                                         ChangesConsumer consumer)
                                  throws VcsException
        Description copied from class: CollectChangesCommand
        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.
        Specified by:
        collectChanges in class CollectChangesCommand
        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
        consumer - callback interface to submit collected changes
        Throws:
        VcsException - in the case of any errors