Interface TeamCityCommits

  • All Known Implementing Classes:
    TeamCityCommitsImpl

    public interface TeamCityCommits
    Represents commits made in vsettings root by TeamCity
    • 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 made
        commitRevision - created revision
      • 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 interest
        upperBoundCommitRevision - 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 interest
        upperBoundCommitRevision - upper bound