Class SVNStatusUnversioned
java.lang.Object
org.tigris.subversion.svnclientadapter.SVNStatusUnversioned
- All Implemented Interfaces:
ISVNStatus
A special
ISVNStatus
implementation that is used if a File/Folder is not versioned or is ignored.- Author:
- Philip Schatz (schatz at tigris), Cédric Chabanois (cchabanois at no-log.org)
-
Constructor Summary
ConstructorsConstructorDescriptionSVNStatusUnversioned
(File file) Constructor.SVNStatusUnversioned
(File file, boolean isIgnored) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the conflict descriptor for the tree conflictReturns in case of conflict, the file of the most recent repository versionReturns in case of conflict, the file of the common base versionReturns in case of conflict, the file of the former working copy versiongetFile()
get the last commit author or null if resource is not versionned or if last commit author is unknownReturns the lock commentReturns the lock creation dateReturns the lock ownergetPath()
getUrl()
boolean
Returns the tree conflicted stateboolean
isCopied()
boolean
Returns if the item is a file externalboolean
boolean
-
Constructor Details
-
SVNStatusUnversioned
Constructor.- Parameters:
file
-isIgnored
- true when creatingSVNStatusKind.IGNORED
, otherwiseSVNStatusKind.UNVERSIONED
-
SVNStatusUnversioned
Constructor. Creates an unversioned status (i.e. not ignored)- Parameters:
file
-
-
-
Method Details
-
getPath
- Specified by:
getPath
in interfaceISVNStatus
- Returns:
- The path to this item relative to the directory from
which
status
was run.
-
getMovedFromAbspath
- Specified by:
getMovedFromAbspath
in interfaceISVNStatus
- Returns:
- The absolute path from which this item was moved.
-
getMovedToAbspath
- Specified by:
getMovedToAbspath
in interfaceISVNStatus
- Returns:
- The absolute path to which this item was moved.
-
getFile
- Specified by:
getFile
in interfaceISVNStatus
- Returns:
- The absolute path to this item.
-
getUrl
- Specified by:
getUrl
in interfaceISVNStatus
- Returns:
- the SVNUrl instance of url of the resource on repository
-
getUrlString
- Specified by:
getUrlString
in interfaceISVNStatus
- Returns:
- the url (String) of the resource in repository
-
getLastChangedRevision
- Specified by:
getLastChangedRevision
in interfaceISVNStatus
- Returns:
- the last changed revision or null if resource is not managed
-
getLastChangedDate
- Specified by:
getLastChangedDate
in interfaceISVNStatus
- Returns:
- date this resource last changed
-
getLastCommitAuthor
Description copied from interface:ISVNStatus
get the last commit author or null if resource is not versionned or if last commit author is unknown- Specified by:
getLastCommitAuthor
in interfaceISVNStatus
- Returns:
- the last commit author or null
-
getTextStatus
- Specified by:
getTextStatus
in interfaceISVNStatus
- Returns:
- the file or directory status
-
getPropStatus
- Specified by:
getPropStatus
in interfaceISVNStatus
- Returns:
- status of properties (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
-
getRepositoryTextStatus
- Specified by:
getRepositoryTextStatus
in interfaceISVNStatus
- Returns:
- the file or directory status of base
-
getRepositoryPropStatus
- Specified by:
getRepositoryPropStatus
in interfaceISVNStatus
- Returns:
- the status of the properties base (either Kind.NORMAL, Kind.CONFLICTED or Kind.MODIFIED)
-
getRevision
- Specified by:
getRevision
in interfaceISVNStatus
- Returns:
- the revision of the resource or null if not managed
-
isCopied
public boolean isCopied()- Specified by:
isCopied
in interfaceISVNStatus
- Returns:
- true when the resource was copied
-
isWcLocked
public boolean isWcLocked()- Specified by:
isWcLocked
in interfaceISVNStatus
- Returns:
- true when the working copy directory is locked.
-
isSwitched
public boolean isSwitched()- Specified by:
isSwitched
in interfaceISVNStatus
- Returns:
- true when the resource was switched relative to its parent.
-
getNodeKind
- Specified by:
getNodeKind
in interfaceISVNStatus
- Returns:
- The node kind of the managed resource, or
SVNNodeKind.UNKNOWN
not managed.
-
getConflictNew
Description copied from interface:ISVNStatus
Returns in case of conflict, the file of the most recent repository version- Specified by:
getConflictNew
in interfaceISVNStatus
- Returns:
- the filename of the most recent repository version
-
getConflictOld
Description copied from interface:ISVNStatus
Returns in case of conflict, the file of the common base version- Specified by:
getConflictOld
in interfaceISVNStatus
- Returns:
- the filename of the common base version
-
getConflictWorking
Description copied from interface:ISVNStatus
Returns in case of conflict, the file of the former working copy version- Specified by:
getConflictWorking
in interfaceISVNStatus
- Returns:
- the filename of the former working copy version
-
getLockComment
Description copied from interface:ISVNStatus
Returns the lock comment- Specified by:
getLockComment
in interfaceISVNStatus
- Returns:
- the lock comment
-
getLockCreationDate
Description copied from interface:ISVNStatus
Returns the lock creation date- Specified by:
getLockCreationDate
in interfaceISVNStatus
- Returns:
- the lock creation date
-
getLockOwner
Description copied from interface:ISVNStatus
Returns the lock owner- Specified by:
getLockOwner
in interfaceISVNStatus
- Returns:
- the lock owner
-
getConflictDescriptor
Description copied from interface:ISVNStatus
Returns the conflict descriptor for the tree conflict- Specified by:
getConflictDescriptor
in interfaceISVNStatus
- Returns:
- the conflict descriptor for the tree conflict
-
hasTreeConflict
public boolean hasTreeConflict()Description copied from interface:ISVNStatus
Returns the tree conflicted state- Specified by:
hasTreeConflict
in interfaceISVNStatus
- Returns:
- the tree conflicted state
-
isFileExternal
public boolean isFileExternal()Description copied from interface:ISVNStatus
Returns if the item is a file external- Specified by:
isFileExternal
in interfaceISVNStatus
- Returns:
- is the item is a file external
-