public class SVNInfo
extends java.lang.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 ...
ISVNInfoHandler
,
SVNWCClient
,
ExamplesConstructor and Description |
---|
SVNInfo(java.io.File file,
SVNURL url,
SVNURL rootURL,
long revision,
SVNNodeKind kind,
java.lang.String uuid,
long committedRevision,
java.lang.String committedDate,
java.lang.String author,
java.lang.String schedule,
SVNURL copyFromURL,
long copyFromRevision,
java.lang.String textTime,
java.lang.String propTime,
java.lang.String checksum,
java.lang.String conflictOld,
java.lang.String conflictNew,
java.lang.String conflictWorking,
java.lang.String propRejectFile,
SVNLock lock,
SVNDepth depth,
java.lang.String changelistName,
long wcSize,
SVNTreeConflictDescription treeConflict) |
SVNInfo(java.lang.String path,
SVNURL url,
SVNRevision revision,
SVNNodeKind kind,
java.lang.String uuid,
SVNURL reposRootURL,
long comittedRevision,
java.util.Date date,
java.lang.String author,
SVNLock lock,
SVNDepth depth,
long size) |
Modifier and Type | Method and Description |
---|---|
static SVNInfo |
createInfo(java.io.File file,
SVNEntry entry) |
static SVNInfo |
createInfo(java.io.File file,
SVNTreeConflictDescription tc) |
static SVNInfo |
createInfo(java.lang.String path,
SVNURL reposRootURL,
java.lang.String uuid,
SVNURL url,
SVNRevision revision,
SVNDirEntry dirEntry,
SVNLock lock) |
java.lang.String |
getAuthor()
Gets the item's last commit author.
|
java.lang.String |
getChangelistName()
Gets the name of the changelist the item belongs to.
|
java.lang.String |
getChecksum()
Gets the file item's checksum.
|
java.util.Date |
getCommittedDate()
Gets the item's last commit date.
|
SVNRevision |
getCommittedRevision()
Gets the item's last committed revision.
|
java.io.File |
getConflictNewFile()
Gets the temporary file that contains all latest changes from the
repository which led to a conflict with local changes.
|
java.io.File |
getConflictOldFile()
Gets the temporary BASE revision file of that working file that is
currently in conflict with changes received from the repository.
|
java.io.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.
|
SVNDepth |
getDepth()
Gets the item's depth.
|
java.io.File |
getFile()
Gets the item's local path.
|
SVNNodeKind |
getKind()
Gets the item's node kind.
|
SVNLock |
getLock()
Gets the file item's lock.
|
java.io.File |
getMovedFromPath() |
java.io.File |
getMovedToPath() |
java.lang.String |
getPath()
Gets the item's path (relative to the repository root).
|
java.io.File |
getPropConflictFile()
Gets the '.prej' file containing details on properties conflicts.
|
java.util.Date |
getPropTime()
Gets the value of the item's
SVNProperty.PROP_TIME property. |
SVNURL |
getRepositoryRootURL()
Gets the repository root url (where the repository itself
is installed).
|
long |
getRepositorySize()
Returns the size of the file in the repository.
|
java.lang.String |
getRepositoryUUID()
Gets the repository Universal Unique IDentifier (UUID).
|
SVNRevision |
getRevision()
Gets the item's revision.
|
java.lang.String |
getSchedule()
Gets the item's schedule status.
|
java.util.Date |
getTextTime()
Gets the value of the item's
SVNProperty.TEXT_TIME
property. |
SVNTreeConflictDescription |
getTreeConflict()
Returns a tree conflict description on the item represented by
this object.
|
SVNURL |
getURL()
Gets the item's URL - its repository location.
|
java.io.File |
getWorkingCopyRoot() |
long |
getWorkingSize()
Returns the size of the working copy file.
|
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).
|
void |
setMovedFromPath(java.io.File movedFrom) |
void |
setMovedToPath(java.io.File movedTo) |
void |
setWorkingCopyRoot(java.io.File root) |
public SVNInfo(java.io.File file, SVNURL url, SVNURL rootURL, long revision, SVNNodeKind kind, java.lang.String uuid, long committedRevision, java.lang.String committedDate, java.lang.String author, java.lang.String schedule, SVNURL copyFromURL, long copyFromRevision, java.lang.String textTime, java.lang.String propTime, java.lang.String checksum, java.lang.String conflictOld, java.lang.String conflictNew, java.lang.String conflictWorking, java.lang.String propRejectFile, SVNLock lock, SVNDepth depth, java.lang.String changelistName, long wcSize, SVNTreeConflictDescription treeConflict)
public SVNInfo(java.lang.String path, SVNURL url, SVNRevision revision, SVNNodeKind kind, java.lang.String uuid, SVNURL reposRootURL, long comittedRevision, java.util.Date date, java.lang.String author, SVNLock lock, SVNDepth depth, long size)
public static SVNInfo createInfo(java.io.File file, SVNEntry entry) throws SVNException
SVNException
public static SVNInfo createInfo(java.io.File file, SVNTreeConflictDescription tc)
public static SVNInfo createInfo(java.lang.String path, SVNURL reposRootURL, java.lang.String uuid, SVNURL url, SVNRevision revision, SVNDirEntry dirEntry, SVNLock lock)
public java.lang.String getAuthor()
SVNProperty.LAST_AUTHOR
property.public java.lang.String getChecksum()
SVNProperty.CHECKSUM
property.public java.util.Date getCommittedDate()
SVNProperty.COMMITTED_DATE
property.public SVNRevision getCommittedRevision()
SVNProperty.COMMITTED_REVISION
property.public java.io.File getConflictNewFile()
Taken from the item's SVNProperty.CONFLICT_NEW
property.
public java.io.File getConflictOldFile()
Taken from the item's SVNProperty.CONFLICT_OLD
property.
public java.io.File getConflictWrkFile()
Taken from the item's SVNProperty.CONFLICT_WRK
property.
public SVNTreeConflictDescription getTreeConflict()
null
if no tree conflict exists on this itempublic SVNRevision getCopyFromRevision()
SVNProperty.COPYFROM_REVISION
property)public SVNURL getCopyFromURL()
SVNProperty.COPYFROM_URL
property)public java.io.File getFile()
getPath()
instead.public boolean isRemote()
SVNWCClient
's doInfo() method to use. Also
applicability of some methods of the SVNInfo class depends
on the item's location that can be determined calling this method.public SVNNodeKind getKind()
public SVNLock getLock()
public java.lang.String getPath()
getFile()
instead.public java.io.File getPropConflictFile()
SVNProperty.PROP_REJECT_FILE
property.public java.util.Date getPropTime()
SVNProperty.PROP_TIME
property.
It corresponds to the last time when properties were committed.public SVNURL getRepositoryRootURL()
public java.lang.String getRepositoryUUID()
SVNProperty.UUID
property.public SVNRevision getRevision()
public java.lang.String getSchedule()
public java.util.Date getTextTime()
SVNProperty.TEXT_TIME
property. It corresponds to the last commit time.public SVNURL getURL()
public SVNDepth getDepth()
public java.lang.String getChangelistName()
public long getWorkingSize()
public long getRepositorySize()
public java.io.File getWorkingCopyRoot()
public java.io.File getMovedFromPath()
public java.io.File getMovedToPath()
public void setWorkingCopyRoot(java.io.File root)
public void setMovedFromPath(java.io.File movedFrom)
public void setMovedToPath(java.io.File movedTo)
Copyright © 2004-2012 TMate Software Ltd. All Rights Reserved.