org.tigris.subversion.javahl

Class Status

public class Status extends Object

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

Author: Patrick Mayweg Cédric Chabanois cchabanois@ifrance.com

Nested Class Summary
static classStatus.Kind
class for kind status of the item or its properties the constants are defined in the interface StatusKind for building reasons
Constructor Summary
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
Method Summary
StringgetConflictNew()
Returns in case of conflict, the filename of the most recent repository version
StringgetConflictOld()
Returns in case of conflict, the filename of the common base version
StringgetConflictWorking()
Returns in case of conflict, the filename of the former working copy version
DategetLastChangedDate()
Returns the last date the item was changed or null
Revision.NumbergetLastChangedRevision()
Returns the last revision the file was changed as a Revision object
longgetLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integer
StringgetLastCommitAuthor()
Returns the author of the last changed or null
StringgetLockComment()
Returns the lock comment
DategetLockCreationDate()
Returns the lock creation date
StringgetLockOwner()
Returns the lock owner
StringgetLockToken()
Returns the lock token
intgetNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)
StringgetPath()
Returns the file system path of the item
intgetPropStatus()
Returns the status of the properties (See Status Kind)
StringgetPropStatusDescription()
Returns the status of the properties as text
intgetRepositoryPropStatus()
Returns test status of the properties in the repository (See StatusKind)
intgetRepositoryTextStatus()
Returns the status of the item in the repository (See StatusKind)
intgetReposKind()
StringgetReposLastCmtAuthor()
DategetReposLastCmtDate()
Revision.NumbergetReposLastCmtRevision()
longgetReposLastCmtRevisionNumber()
LockgetReposLock()
Returns the lock as in the repository
Revision.NumbergetRevision()
Returns the revision as a Revision object
Revision.NumbergetRevisionCopiedFrom()
Returns if copied the source revision as a Revision object
longgetRevisionCopiedFromNumber()
Returns if copied the source revision as s long integer
longgetRevisionNumber()
Returns the revision as a long integer
intgetTextStatus()
Returns the status of the item (See StatusKind)
StringgetTextStatusDescription()
Returns the status of the item as text.
StringgetUrl()
Returns the URI to where the item might exist in the repository.
StringgetUrlCopiedFrom()
Returns if copied the copy source url or null
booleanhasRemote()
Returns if the resource has a remote counter-part
booleanisAdded()
Returns if the resource just has been added
booleanisCopied()
Returns if the item has been copied
booleanisDeleted()
Returns if the resource is schedules for delete
booleanisIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore is set on SVNClient.list)
booleanisLocked()
Returns if the item is locked (running or aborted subversion operation)
booleanisManaged()
Returns if is managed by svn (added, normal, modified ...)
booleanisMerged()
Returns if the resource has been merged
booleanisModified()
Returns if the resource itself is modified
booleanisSwitched()
Returns if the repository url has been switched

Constructor Detail

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

Parameters: path the file system path of item url the url of the item nodeKind kind of item (directory, file or unknown revision the revision number of the base lastChangedRevision the last revision this item was changed lastChangedDate the last date this item was changed lastCommitAuthor the author of the last change textStatus the file or directory status (See StatusKind) propStatus the property status (See StatusKind) repositoryTextStatus the file or directory status of the base repositoryPropStatus the property status of the base locked if the item is locked (running or aborted operation) copied if the item is copy conflictOld in case of conflict, the file name of the the common base version conflictNew in case of conflict, the file name of new repository version conflictWorking in case of conflict, the file name of the former working copy version urlCopiedFrom if copied, the url of the copy source revisionCopiedFrom if copied, the revision number of the copy source switched flag if the node has been switched in the path lockToken the token for the current lock if any lockOwner the owner of the current lock is any lockComment the comment of the current lock if any lockCreationDate the date, the lock was created if any reposLock the lock as stored in the repository if any reposLastCmtRevision the youngest revision, if out of date reposLastCmtDate the last commit date, if out of date reposKind the kind of the youngest revision, if out of date reposLastCmtAuthor the author of the last commit, if out of date

Method Detail

getConflictNew

public String getConflictNew()
Returns in case of conflict, the filename of the most recent repository version

Returns: the filename of the most recent repository version

getConflictOld

public String getConflictOld()
Returns in case of conflict, the filename of the common base version

Returns: the filename of the common base version

getConflictWorking

public String getConflictWorking()
Returns in case of conflict, the filename of the former working copy version

Returns: the filename of the former working copy version

getLastChangedDate

public Date getLastChangedDate()
Returns the last date the item was changed or null

Returns: 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

Returns: last changed revision

getLastChangedRevisionNumber

public long getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integer

Returns: last changed revision

getLastCommitAuthor

public String getLastCommitAuthor()
Returns the author of the last changed or null

Returns: name of author if versioned, null otherwise

getLockComment

public String getLockComment()
Returns the lock comment

Returns: the lock comment

Since: 1.2

getLockCreationDate

public Date getLockCreationDate()
Returns the lock creation date

Returns: the lock creation date

Since: 1.2

getLockOwner

public String getLockOwner()
Returns the lock owner

Returns: the lock owner

Since: 1.2

getLockToken

public String getLockToken()
Returns the lock token

Returns: the lock token

Since: 1.2

getNodeKind

public int getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)

Returns: the node kind

getPath

public String getPath()
Returns the file system path of the item

Returns: path of status entry

getPropStatus

public int getPropStatus()
Returns the status of the properties (See Status Kind)

Returns: file status property enum of the "property" component.

getPropStatusDescription

public String getPropStatusDescription()
Returns the status of the properties as text

Returns: english text

getRepositoryPropStatus

public int getRepositoryPropStatus()
Returns test status of the properties in the repository (See StatusKind)

Returns: 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)

Returns: file status property enum of the "textual" component in the repository.

getReposKind

public int getReposKind()

Returns: The node kind (e.g. file, directory, etc.), or null if up to date.

Since: 1.3

getReposLastCmtAuthor

public String getReposLastCmtAuthor()

Returns: The author of the last commit, or null if up to date.

Since: 1.3

getReposLastCmtDate

public Date getReposLastCmtDate()

Returns: The last committed date, or null if up to date.

Since: 1.3

getReposLastCmtRevision

public Revision.Number getReposLastCmtRevision()

Returns: The last committed revision, or SVN_INVALID_REVNUM if up to date.

Since: 1.3

getReposLastCmtRevisionNumber

public long getReposLastCmtRevisionNumber()

Returns: The last committed revision as a long integer, or -1 if up to date.

Since: 1.3

getReposLock

public Lock getReposLock()
Returns the lock as in the repository

Returns: the lock as in the repository

Since: 1.2

getRevision

public Revision.Number getRevision()
Returns the revision as a Revision object

Returns: revision if versioned, otherwise SVN_INVALID_REVNUM

getRevisionCopiedFrom

public Revision.Number getRevisionCopiedFrom()
Returns if copied the source revision as a Revision object

Returns: the source revision

getRevisionCopiedFromNumber

public long getRevisionCopiedFromNumber()
Returns if copied the source revision as s long integer

Returns: the source revision

getRevisionNumber

public long getRevisionNumber()
Returns the revision as a long integer

Returns: revision if versioned, otherwise SVN_INVALID_REVNUM

getTextStatus

public int getTextStatus()
Returns the status of the item (See StatusKind)

Returns: file status property enum of the "textual" component.

getTextStatusDescription

public String getTextStatusDescription()
Returns the status of the item as text.

Returns: english 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).

Returns: 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

Returns: the source url

hasRemote

public boolean hasRemote()
Returns if the resource has a remote counter-part

Returns: has version in repository

isAdded

public boolean isAdded()
Returns if the resource just has been added

Returns: if added

isCopied

public boolean isCopied()
Returns if the item has been copied

Returns: true if copied

isDeleted

public boolean isDeleted()
Returns if the resource is schedules for delete

Returns: if deleted

isIgnored

public boolean isIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore is set on SVNClient.list)

Returns: if ignore

isLocked

public boolean isLocked()
Returns if the item is locked (running or aborted subversion operation)

Returns: true if locked

isManaged

public boolean isManaged()
Returns if is managed by svn (added, normal, modified ...)

Returns: if managed by svn

isMerged

public boolean isMerged()
Returns if the resource has been merged

Returns: if merged

isModified

public boolean isModified()
Returns if the resource itself is modified

Returns: if modified

isSwitched

public boolean isSwitched()
Returns if the repository url has been switched

Returns: is the item has been switched