Class SingleVersionCollectChangesCommand
- java.lang.Object
-
- jetbrains.vcs.api.services.collectChanges.CollectChangesCommand
-
- jetbrains.vcs.api.services.collectChanges.SingleVersionCollectChangesCommand
-
public abstract class SingleVersionCollectChangesCommand extends CollectChangesCommand
Created 12.12.13 16:37- Author:
- Eugene Petrenko (eugene.petrenko@jetbrains.com)
-
-
Constructor Summary
Constructors Constructor Description SingleVersionCollectChangesCommand()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected abstract void
collectChanges(VcsRoot fromRepository, String fromState, VcsRoot toRepository, String toState, CheckoutRules checkoutRules, ChangesConsumer consumer)
void
collectChanges(VcsRoot fromRepository, RepositoryStateData fromState, VcsRoot toRepository, RepositoryStateData toState, CheckoutRules checkoutRules, ChangesConsumer consumer)
Collect changes between repositories.-
Methods inherited from class jetbrains.vcs.api.services.collectChanges.CollectChangesCommand
addAll
-
-
-
-
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 classCollectChangesCommand
- Parameters:
fromRepository
- repository from which to collect changesfromState
- start point for collecting changes in fromRepositorytoRepository
- root to which changes should be collectedtoState
- end point for collecting changes in toRepositorycheckoutRules
- rulesconsumer
- callback interface to submit collected changes- Throws:
VcsException
- in the case of any errors
-
collectChanges
protected abstract void collectChanges(@Nullable VcsRoot fromRepository, @NotNull String fromState, @NotNull VcsRoot toRepository, @Nullable String toState, @NotNull CheckoutRules checkoutRules, @NotNull ChangesConsumer consumer) throws VcsException
- Throws:
VcsException
-
-