public class MercurialBranchDetector extends AbstractMercurialExecutor implements VcsBranchDetector
| Modifier and Type | Field and Description |
|---|---|
static Pattern |
branchesPattern |
branchIntegrationHelper, buildDirectoryManager, buildLoggerManager, 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 |
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, updateRemoteWithNewBranchclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFirstCommit, getOpenBranches, usePollingForBranchDetectionpublic static final Pattern branchesPattern
@Nullable public ContextualVcsId getVcsIdForExecutor(@NotNull VcsRepositoryData vcsRepositoryData)
IdentifyingExecutorVcsBranchDetector. If they also point
to the same branch, they are considered equal in context of VcsChangeDetectorgetVcsIdForExecutor in interface IdentifyingExecutor<VcsBranchDetector>@NotNull public CommitContext getLastCommit(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetectorgetLastCommit in interface VcsBranchDetectorRepositoryException@NotNull public CommitContext getFirstCommitApproximation(@NotNull VcsRepositoryData repositoryData) throws RepositoryException
VcsBranchDetectorgetFirstCommitApproximation in interface VcsBranchDetectorRepositoryExceptionCopyright © 2019 Atlassian Software Systems Pty Ltd. All rights reserved.