Class TeamCityCommitsImpl

    • Method Detail

      • getUpTo

        @NotNull
        public List<TeamCityCommits.CommitDetails> getUpTo​(@NotNull
                                                           VcsRootInstance settingsRoot,
                                                           @NotNull
                                                           String upperBoundCommitRevision)
        Description copied from interface: TeamCityCommits
        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.
        Specified by:
        getUpTo in interface TeamCityCommits
        Parameters:
        settingsRoot - settings root of interest
        upperBoundCommitRevision - upper bound commit revision
        Returns:
        see above
      • add

        public void add​(@NotNull
                        VcsRootInstance settingsRoot,
                        @NotNull
                        String commitRevision,
                        @NotNull
                        Date commitDate)
        Description copied from interface: TeamCityCommits
        Add commit made by TC. Does nothing if commit was already added and not yet removed.
        Specified by:
        add in interface TeamCityCommits
        Parameters:
        settingsRoot - root where commit was made
        commitRevision - created revision
      • removeUpTo

        public void removeUpTo​(@NotNull
                               VcsRootInstance settingsRoot,
                               @NotNull
                               String upperBoundCommitRevision)
        Description copied from interface: TeamCityCommits
        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.
        Specified by:
        removeUpTo in interface TeamCityCommits
        Parameters:
        settingsRoot - settings root of interest
        upperBoundCommitRevision - upper bound