Class SVNRevision
java.lang.Object
org.tigris.subversion.svnclientadapter.SVNRevision
- Direct Known Subclasses:
SVNRevision.DateSpec
,SVNRevision.Number
Class to specify a revision in a svn command.
This class has been copied directly from javahl and renamed to SVNRevision
the static method getRevision has then been added to the class
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static final class
Various ways of specifying revisions.static class
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SVNRevision
static final SVNRevision
protected static final SafeSimpleDateFormat
static final SVNRevision
static final SVNRevision.Number
static final SVNRevision
protected int
static final SVNRevision
static final int
static final SVNRevision
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
int
getKind()
static SVNRevision
getRevision
(String revision) get a revision from a string revision can be : - a date with the following format : MM/DD/YYYY HH:MM AM_PM - a revision number - HEAD, BASE, COMMITED or PREVstatic SVNRevision
getRevision
(String revision, SimpleDateFormat aDateFormat) get a revision from a string revision can be : - a date with the format according todateFormat
- a revision number - HEAD, BASE, COMMITED or PREVint
hashCode()
toString()
-
Field Details
-
dateFormat
-
revKind
protected int revKind -
HEAD
-
START
-
COMMITTED
-
PREVIOUS
-
BASE
-
WORKING
-
SVN_INVALID_REVNUM
public static final int SVN_INVALID_REVNUM- See Also:
-
INVALID_REVISION
-
-
Constructor Details
-
SVNRevision
public SVNRevision(int kind)
-
-
Method Details
-
getKind
public int getKind() -
toString
-
equals
-
hashCode
public int hashCode() -
getRevision
public static SVNRevision getRevision(String revision, SimpleDateFormat aDateFormat) throws ParseException get a revision from a string revision can be : - a date with the format according todateFormat
- a revision number - HEAD, BASE, COMMITED or PREV- Parameters:
revision
-aDateFormat
-- Returns:
- Revision
- Throws:
ParseException
- when the revision string cannot be parsed
-
getRevision
get a revision from a string revision can be : - a date with the following format : MM/DD/YYYY HH:MM AM_PM - a revision number - HEAD, BASE, COMMITED or PREV- Parameters:
revision
-- Returns:
- Revision
- Throws:
ParseException
- when the revision string cannot be parsed
-