public class MercurialChangeDetector extends AbstractMercurialExecutor implements CommitsIsolatingVcsChangeDetector
branchIntegrationHelper, buildDirectoryManager, buildLoggerManager, capabilityContext, credentialsAccessor, customVariableContext, i18nResolver, scopedExclusionService, sshProxyService, trustedKeyHelper
Constructor and Description |
---|
MercurialChangeDetector() |
Modifier and Type | Method and Description |
---|---|
BuildRepositoryChanges |
collectChangesForRevision(PlanKey planKey,
VcsRepositoryData repositoryData,
String customRevision) |
BuildRepositoryChanges |
collectChangesSinceRevision(PlanKey planKey,
VcsRepositoryData repositoryData,
PlanVcsRevisionData lastRevisionData) |
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 . |
commitLocal, getAccessData, getCacheBaseDirectory, getCacheDirectory, getCacheDirectory, getHgRepoAccess, getHgRepoAccess, getMaxCommitsToReturn, getOpenBranches, getSubstitutedAccessData, getWorkingCopyInfo, getWorkingDirectory, substituteString, updateRemote, updateRemoteWithNewBranch
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectChangesForInitialBuild
@NotNull public BuildRepositoryChanges collectChangesSinceRevision(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull PlanVcsRevisionData lastRevisionData) throws RepositoryException
collectChangesSinceRevision
in interface VcsChangeDetector
RepositoryException
@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
@NotNull public BuildRepositoryChanges collectChangesForRevision(@NotNull PlanKey planKey, @NotNull VcsRepositoryData repositoryData, @NotNull String customRevision) throws RepositoryException
collectChangesForRevision
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
Copyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.