Class SVNRevision

java.lang.Object
org.tigris.subversion.svnclientadapter.SVNRevision
Direct Known Subclasses:
SVNRevision.DateSpec, SVNRevision.Number

public class SVNRevision extends Object
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
  • Field Details

  • Constructor Details

    • SVNRevision

      public SVNRevision(int kind)
  • Method Details

    • getKind

      public int getKind()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

      public boolean equals(Object target)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • 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 to dateFormat - a revision number - HEAD, BASE, COMMITED or PREV
      Parameters:
      revision -
      aDateFormat -
      Returns:
      Revision
      Throws:
      ParseException - when the revision string cannot be parsed
    • getRevision

      public static SVNRevision getRevision(String revision) throws ParseException
      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