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
-
Method Summary
Modifier and TypeMethodDescriptionabstract boolean
final SCMHead
getHead()
Returns theSCMHead
that thisSCMRevision
belongs to.abstract int
hashCode()
boolean
Returnstrue
if 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
- theSCMHead
that theSCMRevision
belongs 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()Returnstrue
if 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:
true
if and only if this revision is deterministic.
-
getHead
Returns theSCMHead
that thisSCMRevision
belongs to.- Returns:
- the
SCMHead
that thisSCMRevision
belongs to.
-