Package jetbrains.buildServer.vcs
Interface RepositoryState
-
- All Superinterfaces:
VcsDataObject
,VcsRepositoryState
- All Known Implementing Classes:
RemainingRepositoryState
,RepositoryStateImpl
,SingleVersionRepositoryStateAdapter
public interface RepositoryState extends VcsRepositoryState
State of the branches in VCS repository- Since:
- 7.0
- Author:
- dmitry.neverov
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description Map<String,Long>
getBranchCreateTimestamps()
Date
getCreateTimestamp()
String
getLastUpdatedBy()
Date
getLoadFromPersistentStorageTimestamp()
void
setBranchCreateTimestamp(String name, long createTimeMillis)
Sets time when the specified branch has been created in VCS repositoryvoid
setBranchRevision(String name, String revision)
Sets revision of specified branch-
Methods inherited from interface jetbrains.vcs.api.data.VcsRepositoryState
getBranchRevisions, getDefaultBranchName, getDefaultBranchRevision, isEmpty
-
-
-
-
Method Detail
-
setBranchRevision
void setBranchRevision(@NotNull String name, @NotNull String revision)
Sets revision of specified branch- Parameters:
name
- branch namerevision
- branch revision
-
getCreateTimestamp
@NotNull Date getCreateTimestamp()
- Returns:
- timestamp when this state was created.
-
setBranchCreateTimestamp
void setBranchCreateTimestamp(@NotNull String name, long createTimeMillis)
Sets time when the specified branch has been created in VCS repository- Parameters:
name
- branch namecreateTimeMillis
- time when branch was created- Since:
- 2019.1.3
-
getBranchCreateTimestamps
@NotNull Map<String,Long> getBranchCreateTimestamps()
- Returns:
- map of branch name to the branch create time in milliseconds
- Since:
- 2019.1.3
-
getLastUpdatedBy
@NotNull String getLastUpdatedBy()
- Returns:
- id of the node which was the last who updated this state
- Since:
- 2020.2.1
-
getLoadFromPersistentStorageTimestamp
@Nullable Date getLoadFromPersistentStorageTimestamp()
- Returns:
- timestamp when this repository state has been loaded from the persistent storage or null if it has not been persisted yet
- Since:
- 2022.10.1
-
-