public class MercurialBranchDetector extends AbstractMercurialExecutor implements VcsBranchDetector
Modifier and Type | Field and Description |
---|---|
static Pattern |
branchesPattern |
branchIntegrationHelper, buildDirectoryManager, buildLoggerManager, buildLoggingContext, capabilityContext, credentialsAccessor, customVariableContext, i18nResolver, scopedExclusionService, sshProxyService, trustedKeyHelper
Constructor and Description |
---|
MercurialBranchDetector() |
Modifier and Type | Method and Description |
---|---|
CommitContext |
getFirstCommitApproximation(VcsRepositoryData repositoryData)
Retrieve an old, preferably the first commit on a branch.
|
CommitContext |
getLastCommit(VcsRepositoryData repositoryData)
Retrieve last commit on the branch set on this Repository.
|
ContextualVcsId<VcsBranchDetector> |
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.
|
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
getFirstCommit, getOpenBranches, usePollingForBranchDetection
public static final Pattern branchesPattern
@Nullable public ContextualVcsId<VcsBranchDetector> 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<VcsBranchDetector>
@NotNull public CommitContext getLastCommit(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetector
getLastCommit
in interface VcsBranchDetector
RepositoryException
@NotNull public CommitContext getFirstCommitApproximation(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetector
getFirstCommitApproximation
in interface VcsBranchDetector
RepositoryException
Copyright © 2021 Atlassian Software Systems Pty Ltd. All rights reserved.