Class MockCollectRepositoryChangesPolicy
- java.lang.Object
-
- jetbrains.buildServer.serverSide.impl.MockCollectRepositoryChangesPolicy
-
- All Implemented Interfaces:
CollectChangesBetweenRepositories
,CollectChangesPolicy
,CollectRepositoryChangesByCheckoutRules
,CollectRepositoryChangesPolicy
,VcsExtension
public class MockCollectRepositoryChangesPolicy extends Object implements CollectChangesBetweenRepositories
-
-
Constructor Summary
Constructors Constructor Description MockCollectRepositoryChangesPolicy()
-
Method Summary
-
-
-
Method Detail
-
collectChanges
@NotNull public List<ModificationData> collectChanges(@NotNull VcsRoot repository, @NotNull RepositoryStateData fromState, @NotNull RepositoryStateData toState, @NotNull CheckoutRules checkoutRules) throws VcsException
Description copied from interface:CollectRepositoryChangesByCheckoutRules
Returns changes in repository detected between specified repository states.- Specified by:
collectChanges
in interfaceCollectRepositoryChangesByCheckoutRules
- Parameters:
repository
- repository in which to collect changesfromState
- start point for collecting changestoState
- end point for collecting changescheckoutRules
- rules- Returns:
- see above
- Throws:
VcsException
- in case of any errors
-
collectChanges
@NotNull public List<ModificationData> collectChanges(@NotNull VcsRoot fromRepository, @NotNull RepositoryStateData fromState, @NotNull VcsRoot toRepository, @NotNull RepositoryStateData toState, @NotNull CheckoutRules checkoutRules) throws VcsException
Description copied from interface:CollectChangesBetweenRepositories
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 interfaceCollectChangesBetweenRepositories
- 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
- rules- Returns:
- collected changes
- Throws:
VcsException
- in the case of any errors
-
getCurrentState
@NotNull public RepositoryStateData getCurrentState(@NotNull VcsRoot repository) throws VcsException
Description copied from interface:CollectRepositoryChangesPolicy
Returns current repository state- Specified by:
getCurrentState
in interfaceCollectRepositoryChangesPolicy
- Parameters:
repository
- repository of interest- Returns:
- see above
- Throws:
VcsException
- in case of any errors
-
setCurrentState
public void setCurrentState(@NotNull VcsRoot repository, @NotNull RepositoryStateData state)
-
getLastToState
public RepositoryStateData getLastToState(@NotNull VcsRoot repository)
-
getLastToState
public RepositoryStateData getLastToState()
-
getLastFromState
public RepositoryStateData getLastFromState(@NotNull VcsRoot repository)
-
getNumberOfChangesCollectings
public int getNumberOfChangesCollectings()
-
setChanges
public void setChanges(@NotNull VcsRoot repository, @NotNull ModificationDataBuilder... changes)
-
addChanges
public void addChanges(@NotNull VcsRoot repository, @NotNull ModificationDataBuilder... changes)
-
setChanges
public void setChanges(@NotNull VcsRoot fromRepository, @NotNull VcsRoot toRepository, @NotNull ModificationDataBuilder... changes)
-
setChanges
public void setChanges(@NotNull VcsRoot repository, @NotNull List<ModificationData> changes)
-
setError
public void setError(@NotNull VcsRoot root, @NotNull VcsException error)
-
removeError
public void removeError(@NotNull VcsRoot root)
-
setCurrentStateError
public void setCurrentStateError(@NotNull VcsRoot root, @NotNull VcsException error)
-
removeCurrentStateError
public void removeCurrentStateError(@NotNull VcsRoot root)
-
-