public class LegacyChangeDetector extends LegacyExecutorBase implements CommitsIsolatingVcsChangeDetector
repositoryModuleDescriptor
Constructor and Description |
---|
LegacyChangeDetector(RepositoryModuleDescriptor repositoryModuleDescriptor) |
Modifier and Type | Method and Description |
---|---|
@NotNull BuildRepositoryChanges |
collectChangesForRevision(@NotNull PlanKey planKey,
@NotNull VcsRepositoryData repositoryData,
@NotNull String customRevision) |
@NotNull BuildRepositoryChanges |
collectChangesSinceRevision(@NotNull PlanKey planKey,
@NotNull VcsRepositoryData repositoryData,
@NotNull PlanVcsRevisionData lastRevisionData) |
@Nullable ContextualVcsId<VcsChangeDetector> |
getVcsIdForExecutor(@NotNull 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.
|
@NotNull List<BuildRepositoryChanges> |
isolateCommits(@NotNull BuildRepositoryChanges changes,
@NotNull VcsRepositoryData vcsRepositoryData)
Break the single build changes object into a list of
BuildRepositoryChanges . |
getNewRepositoryInstance, getNewRepositoryInstanceAs, getRepositoryInstance, getRepositoryInstanceAs, xmlToConfiguration
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectChangesForInitialBuild
public LegacyChangeDetector(RepositoryModuleDescriptor repositoryModuleDescriptor)
@NotNull public @NotNull List<BuildRepositoryChanges> isolateCommits(@NotNull @NotNull BuildRepositoryChanges changes, @NotNull @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
@NotNull public @NotNull BuildRepositoryChanges collectChangesSinceRevision(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull PlanVcsRevisionData lastRevisionData) throws RepositoryException
collectChangesSinceRevision
in interface VcsChangeDetector
RepositoryException
@NotNull public @NotNull BuildRepositoryChanges collectChangesForRevision(@NotNull @NotNull PlanKey planKey, @NotNull @NotNull VcsRepositoryData repositoryData, @NotNull @NotNull String customRevision) throws RepositoryException
collectChangesForRevision
in interface VcsChangeDetector
RepositoryException
@Nullable public @Nullable ContextualVcsId<VcsChangeDetector> getVcsIdForExecutor(@NotNull @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<VcsChangeDetector>
Copyright © 2022 Atlassian Software Systems Pty Ltd. All rights reserved.