Class SvnWorkingCopyManager
java.lang.Object
com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
com.atlassian.bamboo.repository.svn.v2.SvnWorkingCopyManager
- All Implemented Interfaces:
NoContextVcsWorkingCopyManager,StatusProvidingVcsWorkingCopyManager,VcsWorkingCopyManager
public class SvnWorkingCopyManager
extends AbstractSvnExecutor
implements NoContextVcsWorkingCopyManager, StatusProvidingVcsWorkingCopyManager
-
Field Summary
Fields inherited from class com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
customVariableContext, svnClientManagerFactory -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription@NotNull VcsWorkingCopygetWorkingCopyInfo(@NotNull VcsRepositoryData repositoryData, @NotNull File checkoutPath) Provide repository working copy information for the given checkout path.@NotNull VcsWorkingCopyretrieveSourceCode(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData targetRevision, @NotNull File targetPath) Checkout or update a working copy to a revision.@NotNull VcsWorkingCopyupdateToLatestRevision(@NotNull CommonContext commonContext, @NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) Checkout or update a working copy to the latest revision.@NotNull VcsWorkingCopyupdateToLatestRevision(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) Checkout or update a working copy to the latest revision.@NotNull VcsWorkingCopyupdateToLatestRevisionForSpecs(@NotNull VcsRepositoryData repositoryData, @NotNull File targetPath) Checkout or update a working copy to the latest revision.Methods inherited from class com.atlassian.bamboo.repository.svn.v2.AbstractSvnExecutor
checkPathExists, copyRepository, doInfo, extractTrustedKey, getBranchDetectionRootUrl, getBranchRootUrl, getCommits, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getSvnClientManager, getTagRootUrl, getWorkingCopyFormatFromConfiguration, substituteString, svnUrltoVcsBranch
-
Constructor Details
-
SvnWorkingCopyManager
public SvnWorkingCopyManager()
-
-
Method Details
-
getWorkingCopyInfo
@NotNull public @NotNull VcsWorkingCopy getWorkingCopyInfo(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File checkoutPath) throws RepositoryException Description copied from interface:StatusProvidingVcsWorkingCopyManagerProvide repository working copy information for the given checkout path.- Specified by:
getWorkingCopyInfoin interfaceStatusProvidingVcsWorkingCopyManager- Parameters:
repositoryData- configuration of the repositorycheckoutPath- path, where repository was checked out- Returns:
- working copy information
- Throws:
RepositoryException- if any error occurs, or e.g. the path is not a valid checkout path for the repository
-
updateToLatestRevision
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException Description copied from interface:NoContextVcsWorkingCopyManagerCheckout or update a working copy to the latest revision.- Specified by:
updateToLatestRevisionin interfaceNoContextVcsWorkingCopyManager- Parameters:
repositoryData- - configuration of a repository to checkout/updatetargetPath- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
updateToLatestRevisionForSpecs
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevisionForSpecs(@NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException Description copied from interface:NoContextVcsWorkingCopyManagerCheckout or update a working copy to the latest revision. The method is desired to work with Specs.- Specified by:
updateToLatestRevisionForSpecsin interfaceNoContextVcsWorkingCopyManager- Parameters:
repositoryData- - configuration of a repository to checkout/updatetargetPath- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
retrieveSourceCode
@NotNull public @NotNull VcsWorkingCopy retrieveSourceCode(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull PlanVcsRevisionData targetRevision, @NotNull @NotNull File targetPath) throws RepositoryException Description copied from interface:VcsWorkingCopyManagerCheckout or update a working copy to a revision.- Specified by:
retrieveSourceCodein interfaceVcsWorkingCopyManager- Parameters:
commonContext- - a current build or deployment contextrepositoryData- - configuration of a repository to check out/updatetargetRevision- - revision to check out or update totargetPath- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-
updateToLatestRevision
@NotNull public @NotNull VcsWorkingCopy updateToLatestRevision(@NotNull @NotNull CommonContext commonContext, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull File targetPath) throws RepositoryException Description copied from interface:VcsWorkingCopyManagerCheckout or update a working copy to the latest revision.- Specified by:
updateToLatestRevisionin interfaceVcsWorkingCopyManager- Parameters:
commonContext- - a current build or deployment contextrepositoryData- - configuration of a repository to check out/updatetargetPath- - workings copy's path. Note that some legacy implementation may ignore this parameter. (seeFixedDirectoryWorkingCopyManager)- Returns:
- object representing created/updated working copy
- Throws:
RepositoryException
-