public class SvnChangeDetector extends AbstractSvnExecutor implements CommitsIsolatingVcsChangeDetector
customVariableContext, svnClientManagerFactory
Constructor and Description |
---|
SvnChangeDetector() |
Modifier and Type | Method and Description |
---|---|
BuildRepositoryChanges |
collectChangesForRevision(PlanKey planKey,
VcsRepositoryData repositoryData,
String customRevision) |
BuildRepositoryChanges |
collectChangesSinceRevision(PlanKey planKey,
VcsRepositoryData repositoryData,
PlanVcsRevisionData revisionData) |
ContextualVcsId |
getVcsIdForExecutor(VcsRepositoryData vcsRepositoryData)
Returned id has to fulfill the following:
Given two VcsRepositoryData objects A and B, and executor e returning equal ContextualVcsId (in terms of equals()),
for any operation foo() provided by the executor,
the calls e::foo(A) and e::foo(B) should be equivalent.
|
List<BuildRepositoryChanges> |
isolateCommits(BuildRepositoryChanges changes,
VcsRepositoryData vcsRepositoryData)
Break the single build changes object into a list of
BuildRepositoryChanges . |
checkPathExists, copyRepository, doInfo, extractTrustedKey, getBranchDetectionRootUrl, getBranchRootUrl, getCommits, getSubstitutedAccessData, getSubstitutedAccessDataBuilder, getSvnClientManager, getTagRootUrl, getWorkingCopyFormatFromConfiguration, substituteString, svnUrltoVcsBranch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectChangesForInitialBuild
@NotNull public BuildRepositoryChanges collectChangesForRevision(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull String customRevision) throws RepositoryException
collectChangesForRevision
in interface VcsChangeDetector
RepositoryException
@NotNull public BuildRepositoryChanges collectChangesSinceRevision(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData revisionData) throws RepositoryException
collectChangesSinceRevision
in interface VcsChangeDetector
RepositoryException
@Nullable public ContextualVcsId getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutor
VcsBranchDetector
. If they also point
to the same branch, they are considered equal in context of VcsChangeDetector
getVcsIdForExecutor
in interface IdentifyingExecutor
@NotNull public List<BuildRepositoryChanges> isolateCommits(@NotNull BuildRepositoryChanges changes, @NotNull VcsRepositoryData vcsRepositoryData)
CommitsIsolatingVcsChangeDetector
BuildRepositoryChanges
. Must not be null. May return an empty
list but that doesn't actually make any sense. BuildRepositoryChanges
will be more likely to be built than lower changes, which may be discarded.isolateCommits
in interface CommitsIsolatingVcsChangeDetector
Copyright © 2020 Atlassian Software Systems Pty Ltd. All rights reserved.