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:CollectRepositoryChangesByCheckoutRulesReturns changes in repository detected between specified repository states.- Specified by:
collectChangesin 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:CollectChangesBetweenRepositoriesCollect 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:
collectChangesin 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:CollectRepositoryChangesPolicyReturns current repository state- Specified by:
getCurrentStatein 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)
-
-