org.tigris.subversion.javahl
Class Revision
java.lang.Object
org.tigris.subversion.javahl.Revision
public class Revision
extends java.lang.Object
Class to specify a revision in a svn command.
Revision(int kind)
|
Revision(int kind, boolean marker) - Internally create a new revision
|
boolean | equals(Object target) - compare to revision objects
|
static Revision | getInstance(Date revisionDate) - Creates a Revision.DateSpec objet
|
static Revision | getInstance(long revisionNumber) - Creates a Revision.Number object
|
int | getKind() - Returns the kind of the Revsion
|
String | toString() - return the textual representation of the revision
|
BASE
public static final Revision BASE
base revision of working copy
COMMITTED
public static final Revision COMMITTED
last committed revision, needs working copy
HEAD
public static final Revision HEAD
last commited revision
PREVIOUS
public static final Revision PREVIOUS
previous committed revision, needs working copy
START
public static final Revision START
first existing revision
SVN_INVALID_REVNUM
public static final int SVN_INVALID_REVNUM
Marker revision number for no real revision
WORKING
public static final Revision WORKING
working version in working copy
revKind
protected int revKind
kind of revision specified
Revision
public Revision(int kind)
Create a new revision
Revision
protected Revision(int kind,
boolean marker)
Internally create a new revision
kind
- kind of revisionmarker
- marker to differtiate from the public deprecated version
equals
public boolean equals(Object target)
compare to revision objects
- if both object have equal content
getInstance
public static Revision getInstance(Date revisionDate)
Creates a Revision.DateSpec objet
revisionDate
- the date of the new object
getInstance
public static Revision getInstance(long revisionNumber)
Creates a Revision.Number object
revisionNumber
- the revision number of the new object
getKind
public int getKind()
Returns the kind of the Revsion
toString
public String toString()
return the textual representation of the revision