Package hudson.scm

Class ChangeLogSet<T extends ChangeLogSet.Entry>

java.lang.Object
hudson.scm.ChangeLogSet<T>
All Implemented Interfaces:
Iterable<T>

@ExportedBean(defaultVisibility=999) public abstract class ChangeLogSet<T extends ChangeLogSet.Entry> extends Object implements Iterable<T>
Represents SCM change list.

Use the "index" view of this object to render the changeset detail page, and use the "digest" view of this object to render the summary page. For the change list at project level, see SCM.

Iterator is expected to return newer changes first then older changes later.

Author:
Kohsuke Kawaguchi
  • Field Details

  • Constructor Details

  • Method Details

    • getRun

      public Run<?,?> getRun()
      Since:
      1.568
    • getBrowser

      public RepositoryBrowser<?> getBrowser()
      Since:
      1.568
    • isEmptySet

      public abstract boolean isEmptySet()
      Returns true if there's no change.
    • getItems

      @Exported public final Object[] getItems()
      All changes in this change set.
    • getKind

      @Exported public String getKind()
      Optional identification of the kind of SCM being used.
      Returns:
      a short token, such as the SCM's main CLI executable name
      Since:
      1.284
    • createEmpty

      public static ChangeLogSet<? extends ChangeLogSet.Entry> createEmpty(Run build)
      Constant instance that represents no changes.
      Since:
      1.568
    • createEmpty

      @Deprecated public static ChangeLogSet<? extends ChangeLogSet.Entry> createEmpty(AbstractBuild build)
      Deprecated.