Package jetbrains.vcs.api.data
Interface VcsRepositoryState
-
- All Superinterfaces:
VcsDataObject
- All Known Subinterfaces:
RepositoryState
- All Known Implementing Classes:
RemainingRepositoryState
,RepositoryStateData
,RepositoryStateImpl
,SingleVersionRepositoryStateAdapter
public interface VcsRepositoryState extends VcsDataObject
Represents single point of time state of a VcsRepository- Since:
- TC 8.0
- Author:
- kir
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,String>
getBranchRevisions()
String
getDefaultBranchName()
String
getDefaultBranchRevision()
boolean
isEmpty()
-
-
-
Method Detail
-
getBranchRevisions
@NotNull Map<String,String> getBranchRevisions()
- Returns:
- VCS branch to Revision state for the repository. If the map is empty, the operation for collection of repositoryState wasn't performed as expensive
-
isEmpty
boolean isEmpty()
- Returns:
- true if this RepositoryState doesn't contain any information, i.e. it is Null object
-
getDefaultBranchName
@NotNull String getDefaultBranchName()
- Returns:
- The branch which is considered default for the moment of changes collecting
-
getDefaultBranchRevision
@Nullable String getDefaultBranchRevision()
- Returns:
- revision for the #getDefaultBranchName branch
- Since:
- 10.0
-
-