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 classstatic final classVarious ways of specifying revisions.static class -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SVNRevisionstatic final SVNRevisionprotected static final SafeSimpleDateFormatstatic final SVNRevisionstatic final SVNRevision.Numberstatic final SVNRevisionprotected intstatic final SVNRevisionstatic final intstatic final SVNRevision -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanintgetKind()static SVNRevisiongetRevision(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 SVNRevisiongetRevision(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 PREVinthashCode()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
-