public interface RepositoryCachingFacade
Modifier and Type | Method and Description |
---|---|
List<VcsBranch> |
getOpenBranches(BranchDetectionCapableRepository repository,
String context)
Retrieve open branches from the given repository.
|
void |
invalidate(BranchDetectionCapableRepository repository,
String context)
Invalidate cache for given parameters
|
@NotNull List<VcsBranch> getOpenBranches(BranchDetectionCapableRepository repository, @Nullable String context) throws RepositoryException
Set
of open branches that are discovered in the repository. Returns empty collection if no branches at
all (can that happen?).
An open branch is a branch that is considered 'open' by underlying VCS - it has nothing to do with the actual
development on that branch (recent commits or so).repository
- to check for branchescontext
- For svn its the branchRoot, not sure what its for otherwise.List
of branch names. May be empty.RepositoryException
void invalidate(BranchDetectionCapableRepository repository, @Nullable String context)
repository
- where to check for branchescontext
- For svn its the branchRoot, not sure what its for otherwise.Copyright © 2016 Atlassian Software Systems Pty Ltd. All rights reserved.