org.tmatesoft.svn.core.wc
public class SVNInfo extends Object
There are two approaches how to process SVNInfo objects:
1. Implementing an ISVNInfoHandler:
import org.tmatesoft.svn.core.wc.ISVNInfoHandler; import org.tmatesoft.svn.core.wc.SVNInfo; ... public class MyCustomInfoHandler implements ISVNInfoHandler { public void handleInfo(SVNInfo info) { //parsing info here ... } }
... import org.tmatesoft.svn.core.wc.SVNWCClient; ... SVNWCClient wcClient; ... wcClient.doInfo(...., new MyCustomInfoHandler()); ...
... SVNInfo info = wcClient.doInfo(new File(myPath), SVNRevision.WORKING); //parsing info here ...
Version: 1.1.1
See Also: ISVNInfoHandler SVNWCClient Examples
Constructor Summary | |
---|---|
protected | SVNInfo(File file, SVNURL url, SVNURL rootURL, long revision, SVNNodeKind kind, String uuid, long committedRevision, String committedDate, String author, String schedule, SVNURL copyFromURL, long copyFromRevision, String textTime, String propTime, String checksum, String conflictOld, String conflictNew, String conflictWorking, String propRejectFile, SVNLock lock) |
protected | SVNInfo(String path, SVNURL url, SVNRevision revision, SVNNodeKind kind, String uuid, SVNURL reposRootURL, long comittedRevision, Date date, String author, SVNLock lock) |
Method Summary | |
---|---|
String | getAuthor()
Gets the item's last commit author. |
String | getChecksum()
Gets the file item's checksum. |
Date | getCommittedDate()
Gets the item's last commit date. |
SVNRevision | getCommittedRevision()
Gets the item's last committed revision. |
File | getConflictNewFile()
Gets the temporary file that contains all latest changes from the
repository which led to a conflict with local changes. |
File | getConflictOldFile()
Gets the temporary BASE revision file of that working file that is
currently in conflict with changes received from the repository. |
File | getConflictWrkFile()
Gets the temporary '.mine' file with all current local changes to the
original file. |
SVNRevision | getCopyFromRevision()
Gets the revision of the item's ancestor from which the item was
copied.
|
SVNURL | getCopyFromURL()
Gets the URL (repository location) of the ancestor from which the
item was copied.
|
File | getFile()
Gets the item's local path. |
SVNNodeKind | getKind()
Gets the item's node kind. |
SVNLock | getLock()
Gets the file item's lock. |
String | getPath()
Gets the item's path (relative to the repository root). |
File | getPropConflictFile()
Gets the '.prej' file containing details on properties conflicts.
|
Date | getPropTime()
Gets the value of the item's
PROP_TIME property.
|
SVNURL | getRepositoryRootURL()
Gets the repository root url (where the repository itself
is installed). |
String | getRepositoryUUID()
Gets the repository Universal Unique IDentifier (UUID). |
SVNRevision | getRevision()
Gets the item's revision.
|
String | getSchedule()
Gets the item's schedule status. |
Date | getTextTime()
Gets the value of the item's TEXT_TIME
property. |
SVNURL | getURL()
Gets the item's URL - its repository location.
|
boolean | isRemote()
Finds out whether the item for which this SVNInfo is generated
is local (located in a user's Working Copy) or remote (located in a
repository). |
Returns: the author who last changed (committed) the item
Returns: the file item's checksum
Returns: the item's last commit date
Returns: the item's last committed revision.
Taken from the item's CONFLICT_NEW property.
Returns: an autogenerated temporary file just as it is in the latest revision in the repository
Taken from the item's CONFLICT_OLD property.
Returns: an autogenerated temporary file just as the conflicting file was before any modifications to it
Taken from the item's CONFLICT_WRK property.
Returns: an autogenerated temporary file with only the user's modifications
Returns: the ancestor's revision (taken from the COPYFROM_REVISION property)
Returns: the item ancestor's URL (taken from the COPYFROM_URL property)
Returns: the item's local path
Returns: the item's node kind
Returns: the file item's lock.
Returns: the item's path in the repository
Returns: the properties conflicts file
Returns: the value of the item's prop-time property
Returns: the repository's root URL
Returns: the repository UUID
Returns: the item's revision
Returns: the item's schedule status
Returns: the value of the item's text-time property
Returns: the item's URL
Returns: true if the item is located in a repository, otherwise false and the item is in a Working Copy