Package org.tigris.subversion.javahl
Class Revision
java.lang.Object
org.tigris.subversion.javahl.Revision
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Revision.DateSpec,Revision.Number
public class Revision extends Object implements Serializable
Class to specify a revision in a svn command.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classRevision.DateSpecclass to specify a revision by a datestatic classRevision.KindVarious ways of specifying revisions.static classRevision.Numberclass to specify a Revision by number -
Field Summary
Fields Modifier and Type Field Description static RevisionBASEbase revision of working copystatic RevisionCOMMITTEDlast committed revision, needs working copystatic RevisionHEADlast committed revisionstatic RevisionPREVIOUSprevious committed revision, needs working copyprotected intrevKindkind of revision specifiedstatic RevisionSTARTfirst existing revisionstatic intSVN_INVALID_REVNUMMarker revision number for no real revisionstatic RevisionWORKINGworking version in working copy -
Constructor Summary
-
Method Summary
Modifier and Type Method Description static RevisioncreateFromApache(Revision aRev)booleanequals(Object target)compare to revision objectsstatic RevisiongetInstance(long revisionNumber)Creates a Revision.Number objectstatic RevisiongetInstance(Date revisionDate)Creates a Revision.DateSpec objetintgetKind()Returns the kind of the RevsioninthashCode()RevisiontoApache()StringtoString()return the textual representation of the revision
-
Field Details
-
revKind
protected int revKindkind of revision specified -
HEAD
last committed revision -
START
first existing revision -
COMMITTED
last committed revision, needs working copy -
PREVIOUS
previous committed revision, needs working copy -
BASE
base revision of working copy -
WORKING
working version in working copy -
SVN_INVALID_REVNUM
public static final int SVN_INVALID_REVNUMMarker revision number for no real revision- See Also:
- Constant Field Values
-
-
Constructor Details
-
Method Details
-
getKind
public int getKind()Returns the kind of the Revsion- Returns:
- kind
-
toString
return the textual representation of the revision -
hashCode
public int hashCode() -
equals
compare to revision objects -
getInstance
Creates a Revision.Number object- Parameters:
revisionNumber- the revision number of the new object- Returns:
- the new object
- Throws:
IllegalArgumentException- If the specified revision number is invalid.
-
getInstance
Creates a Revision.DateSpec objet- Parameters:
revisionDate- the date of the new object- Returns:
- the new object
-
toApache
-
createFromApache
-