public class RepositoryCachingFacadeImpl extends Object implements 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 public List<VcsBranch> getOpenBranches(BranchDetectionCapableRepository repository, @Nullable String context) throws RepositoryException
RepositoryCachingFacade
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).getOpenBranches
in interface RepositoryCachingFacade
repository
- to check for branchescontext
- For svn its the branchRoot, not sure what its for otherwise.List
of branch names. May be empty.RepositoryException
public void invalidate(BranchDetectionCapableRepository repository, @Nullable String context)
RepositoryCachingFacade
invalidate
in interface RepositoryCachingFacade
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.