Package org.tmatesoft.svn.core
Class SVNCommitInfo
java.lang.Object
org.tmatesoft.svn.core.SVNCommitInfo
public class SVNCommitInfo
extends java.lang.Object
The SVNCommitInfo class represents information about a committed
revision. Commit information includes:
- a revision number;
- a datestamp when the revision was committed;
- the name of the revision author.
- Since:
- 1.2
- Version:
- 1.3
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate java.lang.Stringprivate java.util.Dateprivate SVNErrorMessageprivate longstatic final SVNCommitInfoDenotes an unsuccessful commit. -
Constructor Summary
ConstructorsConstructorDescriptionSVNCommitInfo(long revision, java.lang.String author, java.util.Date date) Constructs an SVNCommitInfo object.SVNCommitInfo(long revision, java.lang.String author, java.util.Date date, SVNErrorMessage error) Constructs an SVNCommitInfo object. -
Method Summary
Modifier and TypeMethodDescriptionjava.lang.StringGets the name of the revision authorjava.util.DategetDate()Gets the datestamp when the revision was committed.getError()Deprecated.Gets an error message for a failed commit (if it has failed).longGets the revision number the repository was committed to.java.lang.StringtoString()Gives a string representation of this object.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
NULL
Denotes an unsuccessful commit. -
myNewRevision
private long myNewRevision -
myDate
private java.util.Date myDate -
myAuthor
private java.lang.String myAuthor -
myErrorMessage
-
-
Constructor Details
-
SVNCommitInfo
public SVNCommitInfo(long revision, java.lang.String author, java.util.Date date) Constructs an SVNCommitInfo object.- Parameters:
revision- a revision numberauthor- the name of the author who committed the revisiondate- the datestamp when the revision was committed
-
SVNCommitInfo
public SVNCommitInfo(long revision, java.lang.String author, java.util.Date date, SVNErrorMessage error) Constructs an SVNCommitInfo object.- Parameters:
revision- a revision numberauthor- the name of the author who committed the revisiondate- the datestamp when the revision was committederror- if a commit failed - this is an error description containing details on the failure
-
-
Method Details
-
getNewRevision
public long getNewRevision()Gets the revision number the repository was committed to.- Returns:
- a revision number
-
getAuthor
public java.lang.String getAuthor()Gets the name of the revision author- Returns:
- a revision author's name
-
getDate
public java.util.Date getDate()Gets the datestamp when the revision was committed.- Returns:
- a revision datestamp
-
getErrorMessage
Gets an error message for a failed commit (if it has failed). This message will usually keep the entire stack trace of all the error messages as of results of errors occurred.- Returns:
- an error messages or null.
-
getError
Deprecated.usegetErrorMessage()instead- Returns:
- exception occurred
-
toString
public java.lang.String toString()Gives a string representation of this object.- Overrides:
toStringin classjava.lang.Object- Returns:
- a string describing commit info
-
getErrorMessage()instead