Subversion status API.
This describes the status of one subversion item (file or directory) in
the working copy. Will be returned by SVNClient.status or
SVNClient.singleStatus
Status
public Status(String path,
String url,
int nodeKind,
long revision,
long lastChangedRevision,
long lastChangedDate,
String lastCommitAuthor,
int textStatus,
int propStatus,
int repositoryTextStatus,
int repositoryPropStatus,
boolean locked,
boolean copied,
String conflictOld,
String conflictNew,
String conflictWorking,
String urlCopiedFrom,
long revisionCopiedFrom,
boolean switched,
String lockToken,
String lockOwner,
String lockComment,
long lockCreationDate,
Lock reposLock,
long reposLastCmtRevision,
long reposLastCmtDate,
int reposKind,
String reposLastCmtAuthor)
this constructor should only called from JNI code
path
- the file system path of itemurl
- the url of the itemnodeKind
- kind of item (directory, file or unknownrevision
- the revision number of the baselastChangedRevision
- the last revision this item was changedlastChangedDate
- the last date this item was changedlastCommitAuthor
- the author of the last changetextStatus
- the file or directory status (See
StatusKind)propStatus
- the property status (See StatusKind)repositoryTextStatus
- the file or directory status of the baserepositoryPropStatus
- the property status of the baselocked
- if the item is locked (running or aborted
operation)copied
- if the item is copyconflictOld
- in case of conflict, the file name of the
the common base versionconflictNew
- in case of conflict, the file name of new
repository versionconflictWorking
- in case of conflict, the file name of the
former working copy versionurlCopiedFrom
- if copied, the url of the copy sourcerevisionCopiedFrom
- if copied, the revision number of the copy
sourceswitched
- flag if the node has been switched in the
pathlockToken
- the token for the current lock if anylockOwner
- the owner of the current lock is anylockComment
- the comment of the current lock if anylockCreationDate
- the date, the lock was created if anyreposLock
- the lock as stored in the repository if
anyreposLastCmtRevision
- the youngest revision, if out of datereposLastCmtDate
- the last commit date, if out of datereposKind
- the kind of the youngest revision, if
out of datereposLastCmtAuthor
- the author of the last commit, if out of
date
getConflictNew
public String getConflictNew()
Returns in case of conflict, the filename of the most recent repository
version
- the filename of the most recent repository version
getConflictOld
public String getConflictOld()
Returns in case of conflict, the filename of the common base version
- the filename of the common base version
getConflictWorking
public String getConflictWorking()
Returns in case of conflict, the filename of the former working copy
version
- the filename of the former working copy version
getLastChangedDate
public Date getLastChangedDate()
Returns the last date the item was changed or null
- the last time the item was changed.
or null if not available
getLastChangedRevision
public Revision.Number getLastChangedRevision()
Returns the last revision the file was changed as a Revision object
getLastChangedRevisionNumber
public long getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integer
getLastCommitAuthor
public String getLastCommitAuthor()
Returns the author of the last changed or null
- name of author if versioned, null otherwise
getLockComment
public String getLockComment()
Returns the lock comment
getLockCreationDate
public Date getLockCreationDate()
Returns the lock creation date
getLockOwner
public String getLockOwner()
Returns the lock owner
getLockToken
public String getLockToken()
Returns the lock token
getNodeKind
public int getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)
getPath
public String getPath()
Returns the file system path of the item
getPropStatus
public int getPropStatus()
Returns the status of the properties (See Status Kind)
- file status property enum of the "property" component.
getPropStatusDescription
public String getPropStatusDescription()
Returns the status of the properties as text
getReposKind
public int getReposKind()
- The node kind (e.g. file, directory, etc.), or
null
if up to date.
getReposLastCmtAuthor
public String getReposLastCmtAuthor()
- The author of the last commit, or
null
if
up to date.
getReposLastCmtDate
public Date getReposLastCmtDate()
- The last committed date, or
null
if up to
date.
getReposLastCmtRevisionNumber
public long getReposLastCmtRevisionNumber()
- The last committed revision as a long integer, or
-1
if up to date.
getReposLock
public Lock getReposLock()
Returns the lock as in the repository
- the lock as in the repository
getRepositoryPropStatus
public int getRepositoryPropStatus()
Returns test status of the properties in the repository (See StatusKind)
- file status property enum of the "property" component im the
repository.
getRepositoryTextStatus
public int getRepositoryTextStatus()
Returns the status of the item in the repository (See StatusKind)
- file status property enum of the "textual" component in the
repository.
getRevision
public Revision.Number getRevision()
Returns the revision as a Revision object
- revision if versioned, otherwise SVN_INVALID_REVNUM
getRevisionCopiedFrom
public Revision.Number getRevisionCopiedFrom()
Returns if copied the source revision as a Revision object
getRevisionCopiedFromNumber
public long getRevisionCopiedFromNumber()
Returns if copied the source revision as s long integer
getRevisionNumber
public long getRevisionNumber()
Returns the revision as a long integer
- revision if versioned, otherwise SVN_INVALID_REVNUM
getTextStatus
public int getTextStatus()
Returns the status of the item (See StatusKind)
- file status property enum of the "textual" component.
getTextStatusDescription
public String getTextStatusDescription()
Returns the status of the item as text.
getUrl
public String getUrl()
Returns the URI to where the item might exist in the
repository. We say "might" because the item might exist in
your working copy, but have been deleted from the repository.
Or it might exist in the repository, but your working copy
might not yet contain it (because the WC is not up to date).
- URI in repository, or
null
if the item
exists in neither the repository nor the WC.
getUrlCopiedFrom
public String getUrlCopiedFrom()
Returns if copied the copy source url or null
hasRemote
public boolean hasRemote()
Returns if the resource has a remote counter-part
- has version in repository
isAdded
public boolean isAdded()
Returns if the resource just has been added
isCopied
public boolean isCopied()
Returns if the item has been copied
isDeleted
public boolean isDeleted()
Returns if the resource is schedules for delete
isIgnored
public boolean isIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore
is set on SVNClient.list)
isLocked
public boolean isLocked()
Returns if the item is locked (running or aborted subversion operation)
isManaged
public boolean isManaged()
Returns if is managed by svn (added, normal, modified ...)
isMerged
public boolean isMerged()
Returns if the resource has been merged
isModified
public boolean isModified()
Returns if the resource itself is modified
isSwitched
public boolean isSwitched()
Returns if the repository url has been switched
- is the item has been switched