public class MercurialChangeSet extends ChangeLogSet.Entry
The object should be treated like an immutable object. The setters are only provided for digester.
Constructor and Description |
---|
MercurialChangeSet() |
Modifier and Type | Method and Description |
---|---|
List<String> |
getAddedPaths()
Gets all the files that were added.
|
Collection<? extends ChangeLogSet.AffectedFile> |
getAffectedFiles() |
Collection<String> |
getAffectedPaths() |
User |
getAuthor()
Gets the user who made this change.
|
String |
getCommitId() |
String |
getDate()
Returns the timestamp of the changeset as a string.
|
List<String> |
getDeletedPaths()
Gets all the files that were deleted.
|
List<EditType> |
getEditTypes()
Returns all three variations of
EditType . |
List<String> |
getModifiedPaths()
Gets all the files that were modified.
|
String |
getMsg()
Commit message.
|
String |
getNode()
Gets the globally unique changeset ID.
|
List<String> |
getPaths(EditType kind) |
long |
getRev()
Gets repository revision number, which is local in the current repository.
|
String |
getRevision()
Deprecated.
|
String |
getShortNode()
Short node ID that hg CLI uses.
|
long |
getTimestamp() |
boolean |
isMerge()
Checks if this is a merge changeset.
|
void |
setNode(String node) |
protected void |
setParent(ChangeLogSet parent) |
getMsgAnnotated, getMsgEscaped, getParent
@Exported public String getMsg()
getMsg
in class ChangeLogSet.Entry
@Exported public User getAuthor()
getAuthor
in class ChangeLogSet.Entry
@Exported public String getNode()
public String getShortNode()
getNode()
.@Exported public long getRev()
@Deprecated public String getRevision()
getNode()
. This method was intended
for use via reflection by the email-ext plugin, but versions 1.40 and later no longer need it.public String getCommitId()
getCommitId
in class ChangeLogSet.Entry
public long getTimestamp()
getTimestamp
in class ChangeLogSet.Entry
@Exported public String getDate()
public Collection<String> getAffectedPaths()
getAffectedPaths
in class ChangeLogSet.Entry
public Collection<? extends ChangeLogSet.AffectedFile> getAffectedFiles()
getAffectedFiles
in class ChangeLogSet.Entry
@Exported public List<String> getDeletedPaths()
@Exported public List<String> getModifiedPaths()
@Exported public boolean isMerge()
public List<EditType> getEditTypes()
EditType
.
Placed here to simplify access from views.protected void setParent(ChangeLogSet parent)
setParent
in class ChangeLogSet.Entry
@Restricted(value=org.kohsuke.accmod.restrictions.NoExternalUse.class) public void setNode(String node)
Copyright © 2016–2022. All rights reserved.