Package hudson.plugins.mercurial
Class MercurialChangeSet
java.lang.Object
hudson.scm.ChangeLogSet.Entry
hudson.plugins.mercurial.MercurialChangeSet
Represents a change set.
The object should be treated like an immutable object. The setters are only provided for digester.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGets all the files that were added.Collection<? extends ChangeLogSet.AffectedFile>
Gets the user who made this change.getDate()
Returns the timestamp of the changeset as a string.Gets all the files that were deleted.Returns all three variations ofEditType
.Gets all the files that were modified.getMsg()
Commit message.getNode()
Gets the globally unique changeset ID.long
getRev()
Gets repository revision number, which is local in the current repository.Deprecated.Short node ID that hg CLI uses.long
boolean
isMerge()
Checks if this is a merge changeset.void
protected void
setParent
(ChangeLogSet parent) Methods inherited from class hudson.scm.ChangeLogSet.Entry
getMsgAnnotated, getMsgEscaped, getParent
-
Constructor Details
-
MercurialChangeSet
public MercurialChangeSet()
-
-
Method Details
-
getMsg
Commit message.- Specified by:
getMsg
in classChangeLogSet.Entry
-
getAuthor
Gets the user who made this change.- Specified by:
getAuthor
in classChangeLogSet.Entry
-
getNode
Gets the globally unique changeset ID. -
getShortNode
Short node ID that hg CLI uses. The first 12 characters ofgetNode()
. -
getRev
@Exported public long getRev()Gets repository revision number, which is local in the current repository. -
getRevision
Deprecated.Gets the globally unique changeset ID. For general purpose use, usegetNode()
. This method was intended for use via reflection by the email-ext plugin, but versions 1.40 and later no longer need it. -
getCommitId
- Overrides:
getCommitId
in classChangeLogSet.Entry
-
getTimestamp
public long getTimestamp()- Overrides:
getTimestamp
in classChangeLogSet.Entry
-
getDate
Returns the timestamp of the changeset as a string. -
getAffectedPaths
- Specified by:
getAffectedPaths
in classChangeLogSet.Entry
-
getAffectedFiles
- Overrides:
getAffectedFiles
in classChangeLogSet.Entry
-
getAddedPaths
Gets all the files that were added. -
getDeletedPaths
Gets all the files that were deleted. -
getModifiedPaths
Gets all the files that were modified. -
isMerge
@Exported public boolean isMerge()Checks if this is a merge changeset. -
getPaths
-
getEditTypes
Returns all three variations ofEditType
. Placed here to simplify access from views. -
setParent
- Overrides:
setParent
in classChangeLogSet.Entry
-
setNode
-