Package org.tigris.subversion.javahl
Class Status
java.lang.Object
org.tigris.subversion.javahl.Status
- All Implemented Interfaces:
Serializable
public class Status extends Object implements Serializable
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
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Status.Kind
class for kind status of the item or its properties the constants are defined in the interface StatusKind for building reasons -
Constructor Summary
Constructors Constructor Description Status(String path)
Create an empty status structStatus(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, boolean treeConflicted, ConflictDescriptor conflictDescriptor, String conflictOld, String conflictNew, String conflictWorking, String urlCopiedFrom, long revisionCopiedFrom, boolean switched, boolean fileExternal, String lockToken, String lockOwner, String lockComment, long lockCreationDate, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, int reposKind, String reposLastCmtAuthor, String changelist)
this constructor should only called from JNI codeStatus(SVNClient aClient, Status aStatus)
A backward-compat wrapper. -
Method Summary
Modifier and Type Method Description String
getChangelist()
ConflictDescriptor
getConflictDescriptor()
String
getConflictNew()
Returns in case of conflict, the filename of the most recent repository versionString
getConflictOld()
Returns in case of conflict, the filename of the common base versionString
getConflictWorking()
Returns in case of conflict, the filename of the former working copy versionDate
getLastChangedDate()
Returns the last date the item was changed or nulllong
getLastChangedDateMicros()
Returns the last date the item was changed measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.Revision.Number
getLastChangedRevision()
Returns the last revision the file was changed as a Revision objectlong
getLastChangedRevisionNumber()
Returns the last revision the file was changed as a long integerString
getLastCommitAuthor()
Returns the author of the last changed or nullString
getLockComment()
Returns the lock commentDate
getLockCreationDate()
Returns the lock creation datelong
getLockCreationDateMicros()
Returns the lock creation date measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.String
getLockOwner()
Returns the lock ownerString
getLockToken()
Returns the lock tokenint
getNodeKind()
Returns the kind of the node (file, directory or unknown, see NodeKind)String
getPath()
Returns the file system path of the itemint
getPropStatus()
Returns the status of the properties (See Status Kind)String
getPropStatusDescription()
Returns the status of the properties as textint
getRepositoryPropStatus()
Returns test status of the properties in the repository (See StatusKind)int
getRepositoryTextStatus()
Returns the status of the item in the repository (See StatusKind)int
getReposKind()
String
getReposLastCmtAuthor()
Date
getReposLastCmtDate()
long
getReposLastCmtDateMicros()
Return the last committed date measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.Revision.Number
getReposLastCmtRevision()
long
getReposLastCmtRevisionNumber()
Lock
getReposLock()
Returns the lock as in the repositoryRevision.Number
getRevision()
Returns the revision as a Revision objectRevision.Number
getRevisionCopiedFrom()
Returns if copied the source revision as a Revision objectlong
getRevisionCopiedFromNumber()
Returns if copied the source revision as s long integerlong
getRevisionNumber()
Returns the revision as a long integerint
getTextStatus()
Returns the status of the item (See StatusKind)String
getTextStatusDescription()
Returns the status of the item as text.String
getUrl()
Returns the URI to where the item might exist in the repository.String
getUrlCopiedFrom()
Returns if copied the copy source url or nullboolean
hasRemote()
Returns if the resource has a remote counter-partboolean
hasTreeConflict()
boolean
isAdded()
Returns if the resource just has been addedboolean
isCopied()
Returns if the item has been copiedboolean
isDeleted()
Returns if the resource is schedules for deleteboolean
isFileExternal()
Returns if the item is a file externalboolean
isIgnored()
Returns if the resource is ignored by svn (only returned if noIgnore is set on SVNClient.list)boolean
isLocked()
Returns if the item is locked (running or aborted subversion operation)boolean
isManaged()
Returns if is managed by svn (added, normal, modified ...)boolean
isMerged()
Returns if the resource has been mergedboolean
isModified()
Returns if the resource itself is modifiedboolean
isSwitched()
Returns if the repository url has been switched
-
Constructor Details
-
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, boolean treeConflicted, ConflictDescriptor conflictDescriptor, String conflictOld, String conflictNew, String conflictWorking, String urlCopiedFrom, long revisionCopiedFrom, boolean switched, boolean fileExternal, String lockToken, String lockOwner, String lockComment, long lockCreationDate, Lock reposLock, long reposLastCmtRevision, long reposLastCmtDate, int reposKind, String reposLastCmtAuthor, String changelist)this constructor should only called from JNI code- Parameters:
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 copytreeConflicted
- if the item is part of a tree conflictconflictDescriptor
- the description of the tree conflictconflictOld
- 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 pathfileExternal
- flag if the node is a file externallockToken
- 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 datechangelist
- the changelist the item is a member of
-
Status
Create an empty status struct -
Status
A backward-compat wrapper.
-
-
Method Details
-
getPath
Returns the file system path of the item- Returns:
- path of status entry
-
getRevision
Returns the revision as a Revision object- Returns:
- revision if versioned, otherwise SVN_INVALID_REVNUM
-
getRevisionNumber
public long getRevisionNumber()Returns the revision as a long integer- Returns:
- revision if versioned, otherwise SVN_INVALID_REVNUM
-
getLastChangedDate
Returns the last date the item was changed or null- Returns:
- the last time the item was changed or null if not available
-
getLastChangedDateMicros
public long getLastChangedDateMicros()Returns the last date the item was changed measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.- Returns:
- the last time the item was changed.
- Since:
- 1.5
-
getLastCommitAuthor
Returns the author of the last changed or null- Returns:
- name of author if versioned, null otherwise
-
getTextStatus
public int getTextStatus()Returns the status of the item (See StatusKind)- Returns:
- file status property enum of the "textual" component.
-
getTextStatusDescription
Returns the status of the item as text.- Returns:
- english text
-
getPropStatus
public int getPropStatus()Returns the status of the properties (See Status Kind)- Returns:
- file status property enum of the "property" component.
-
getPropStatusDescription
Returns the status of the properties as text- Returns:
- english text
-
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.
-
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.
-
isLocked
public boolean isLocked()Returns if the item is locked (running or aborted subversion operation)- Returns:
- true if locked
-
isCopied
public boolean isCopied()Returns if the item has been copied- Returns:
- true if copied
-
getConflictNew
Returns in case of conflict, the filename of the most recent repository version- Returns:
- the filename of the most recent repository version
-
getConflictOld
Returns in case of conflict, the filename of the common base version- Returns:
- the filename of the common base version
-
getConflictWorking
Returns in case of conflict, the filename of the former working copy version- Returns:
- the filename of the former working copy version
-
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.
-
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
-
getNodeKind
public int getNodeKind()Returns the kind of the node (file, directory or unknown, see NodeKind)- Returns:
- the node kind
-
getUrlCopiedFrom
Returns if copied the copy source url or null- Returns:
- the source url
-
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
-
isSwitched
public boolean isSwitched()Returns if the repository url has been switched- Returns:
- is the item has been switched
-
isFileExternal
public boolean isFileExternal()Returns if the item is a file external- Returns:
- is the item is a file external
-
isManaged
public boolean isManaged()Returns if is managed by svn (added, normal, modified ...)- Returns:
- if managed by svn
-
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
-
isDeleted
public boolean isDeleted()Returns if the resource is schedules for delete- Returns:
- if deleted
-
isMerged
public boolean isMerged()Returns if the resource has been merged- Returns:
- if merged
-
isIgnored
public boolean isIgnored()Returns if the resource is ignored by svn (only returned if noIgnore is set on SVNClient.list)- Returns:
- if ignore
-
isModified
public boolean isModified()Returns if the resource itself is modified- Returns:
- if modified
-
getLockToken
Returns the lock token- Returns:
- the lock token
- Since:
- 1.2
-
getLockOwner
Returns the lock owner- Returns:
- the lock owner
- Since:
- 1.2
-
getLockComment
Returns the lock comment- Returns:
- the lock comment
- Since:
- 1.2
-
getLockCreationDate
Returns the lock creation date- Returns:
- the lock creation date
- Since:
- 1.2
-
getLockCreationDateMicros
public long getLockCreationDateMicros()Returns the lock creation date measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.- Returns:
- the lock creation date
- Since:
- 1.5
-
getReposLock
Returns the lock as in the repository- Returns:
- the lock as in the repository
- Since:
- 1.2
-
getReposLastCmtRevision
- Returns:
- The last committed revision, or
Revision.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
-
getReposLastCmtDate
- Returns:
- The last committed date, or
null
if up to date. - Since:
- 1.3
-
getReposLastCmtDateMicros
public long getReposLastCmtDateMicros()Return the last committed date measured in the number of microseconds since 00:00:00 January 1, 1970 UTC.- Returns:
- the last committed date
- Since:
- 1.5
-
getReposKind
public int getReposKind()- Returns:
- The node kind (e.g. file, directory, etc.), or
null
if up to date. - Since:
- 1.3
-
getReposLastCmtAuthor
- Returns:
- The author of the last commit, or
null
if up to date. - Since:
- 1.3
-
getChangelist
- Returns:
- the changelist name
- Since:
- 1.5
-
hasTreeConflict
public boolean hasTreeConflict()- Returns:
- the tree conflicted state
- Since:
- 1.6
-
getConflictDescriptor
- Returns:
- the conflict descriptor for the tree conflict
- Since:
- 1.6
-