Package org.tmatesoft.svn.core
Class SVNCommitInfo
java.lang.Object
org.tmatesoft.svn.core.SVNCommitInfo
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
- Author:
- TMate Software Ltd.
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionSVNCommitInfo
(long revision, String author, Date date) Constructs an SVNCommitInfo object.SVNCommitInfo
(long revision, String author, Date date, SVNErrorMessage error) Constructs an SVNCommitInfo object. -
Method Summary
Modifier and TypeMethodDescriptionGets the name of the revision authorgetDate()
Gets the datestamp when the revision was committed.getError()
Deprecated.Gets an error message for a failed commit (if it has failed).long
Gets the revision number the repository was committed to.toString()
Gives a string representation of this object.
-
Field Details
-
NULL
Denotes an unsuccessful commit.
-
-
Constructor Details
-
SVNCommitInfo
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
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
Gets the name of the revision author- Returns:
- a revision author's name
-
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
Gives a string representation of this object.
-
getErrorMessage()
instead