Interface TeamCityCommits
-
- All Known Implementing Classes:
TeamCityCommitsImpl
public interface TeamCityCommits
Represents commits made in vsettings root by TeamCity
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static class
TeamCityCommits.CommitDetails
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
add(VcsRootInstance settingsRoot, String commitRevision, Date commitDate)
Add commit made by TC.List<TeamCityCommits.CommitDetails>
get(VcsRootInstance settingsRoot)
Returns copy of commits made by TC in the given settings rootList<TeamCityCommits.CommitDetails>
getUpTo(VcsRootInstance settingsRoot, String upperBoundCommitRevision)
Returns copy of commits made by TC in the given settings root up to given upper bound inclusive.void
removeUpTo(VcsRootInstance settingsRoot, String upperBoundCommitRevision)
Clears commits made by TC in the given settings root upto given upper bound inclusive.
-
-
-
Method Detail
-
add
void add(@NotNull VcsRootInstance settingsRoot, @NotNull String commitRevision, @NotNull Date commitDate)
Add commit made by TC. Does nothing if commit was already added and not yet removed.- Parameters:
settingsRoot
- root where commit was madecommitRevision
- created revision
-
get
@NotNull List<TeamCityCommits.CommitDetails> get(@NotNull VcsRootInstance settingsRoot)
Returns copy of commits made by TC in the given settings root- Parameters:
settingsRoot
- settings root of interest- Returns:
- see above
-
getUpTo
@NotNull List<TeamCityCommits.CommitDetails> getUpTo(@NotNull VcsRootInstance settingsRoot, @NotNull String upperBoundCommitRevision)
Returns copy of commits made by TC in the given settings root up to given upper bound inclusive. If upper bound is unknown, returns empty list.- Parameters:
settingsRoot
- settings root of interestupperBoundCommitRevision
- upper bound commit revision- Returns:
- see above
-
removeUpTo
void removeUpTo(@NotNull VcsRootInstance settingsRoot, @NotNull String upperBoundCommitRevision)
Clears commits made by TC in the given settings root upto given upper bound inclusive. Does nothing if upper bound is not found among TeamCity commits.- Parameters:
settingsRoot
- settings root of interestupperBoundCommitRevision
- upper bound
-
-