Class MercurialChangeSet

java.lang.Object
hudson.scm.ChangeLogSet.Entry
hudson.plugins.mercurial.MercurialChangeSet

public class MercurialChangeSet extends ChangeLogSet.Entry
Represents a change set.

The object should be treated like an immutable object. The setters are only provided for digester.

  • Constructor Details

    • MercurialChangeSet

      public MercurialChangeSet()
  • Method Details

    • getMsg

      @Exported public String getMsg()
      Commit message.
      Specified by:
      getMsg in class ChangeLogSet.Entry
    • getAuthor

      @Exported public User getAuthor()
      Gets the user who made this change.
      Specified by:
      getAuthor in class ChangeLogSet.Entry
    • getNode

      @Exported public String getNode()
      Gets the globally unique changeset ID.
    • getShortNode

      public String getShortNode()
      Short node ID that hg CLI uses. The first 12 characters of getNode().
    • getRev

      @Exported public long getRev()
      Gets repository revision number, which is local in the current repository.
    • getRevision

      @Deprecated public String getRevision()
      Deprecated.
      Gets the globally unique changeset ID. For general purpose use, use getNode(). This method was intended for use via reflection by the email-ext plugin, but versions 1.40 and later no longer need it.
    • getCommitId

      public String getCommitId()
      Overrides:
      getCommitId in class ChangeLogSet.Entry
    • getTimestamp

      public long getTimestamp()
      Overrides:
      getTimestamp in class ChangeLogSet.Entry
    • getDate

      @Exported public String getDate()
      Returns the timestamp of the changeset as a string.
    • getAffectedPaths

      public Collection<String> getAffectedPaths()
      Specified by:
      getAffectedPaths in class ChangeLogSet.Entry
    • getAffectedFiles

      public Collection<? extends ChangeLogSet.AffectedFile> getAffectedFiles()
      Overrides:
      getAffectedFiles in class ChangeLogSet.Entry
    • getAddedPaths

      @Exported public List<String> getAddedPaths()
      Gets all the files that were added.
    • getDeletedPaths

      @Exported public List<String> getDeletedPaths()
      Gets all the files that were deleted.
    • getModifiedPaths

      @Exported public List<String> getModifiedPaths()
      Gets all the files that were modified.
    • isMerge

      @Exported public boolean isMerge()
      Checks if this is a merge changeset.
    • getPaths

      public List<String> getPaths(EditType kind)
    • getEditTypes

      public List<EditType> getEditTypes()
      Returns all three variations of EditType. Placed here to simplify access from views.
    • setParent

      protected void setParent(ChangeLogSet parent)
      Overrides:
      setParent in class ChangeLogSet.Entry
    • setNode

      @Restricted(org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setNode(String node)