Package jenkins.scm.api
Class SCMRevision
java.lang.Object
jenkins.scm.api.SCMRevision
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
ChangeRequestSCMRevision
Base class that represents a specific (or not so specific) revision of a
SCMHead.- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanfinal SCMHeadgetHead()Returns theSCMHeadthat thisSCMRevisionbelongs to.abstract inthashCode()booleanReturnstrueif and only if this revision is deterministic, in other words that repeated checkouts of this revision will result in the exact same files being checked out.toString()Should provide a concise, human-readable summary of this revision in an implementation-dependent format.
-
Constructor Details
-
SCMRevision
Constructor.- Parameters:
head- theSCMHeadthat theSCMRevisionbelongs to.
-
-
Method Details
-
equals
-
hashCode
public abstract int hashCode() -
toString
Should provide a concise, human-readable summary of this revision in an implementation-dependent format. -
isDeterministic
@Exported public boolean isDeterministic()Returnstrueif and only if this revision is deterministic, in other words that repeated checkouts of this revision will result in the exact same files being checked out. Most modern SCM systems have a deterministic revision, however some of the older ones do not have a deterministic revision for all types of head.- Returns:
trueif and only if this revision is deterministic.
-
getHead
Returns theSCMHeadthat thisSCMRevisionbelongs to.- Returns:
- the
SCMHeadthat thisSCMRevisionbelongs to.
-