Package org.apache.maven.scm
Class ScmFileStatus
java.lang.Object
org.apache.maven.scm.ScmFileStatus
- All Implemented Interfaces:
Serializable
TODO move to a real enum
Typesafe enum for file status
There are two types of status defined in this class:
1) Status: Changes in the working tree, not yet committed to the repository eg. MODIFIED
2) Transaction: The file is part of some transaction with the repository eg. CHECKED_IN
- Author:
- Trygve Laugstøl
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final ScmFileStatus
File is added to the working tree and does not yet exist in the repositorystatic final ScmFileStatus
File from working tree is checked into the repositorystatic final ScmFileStatus
File is checked out from the repository and into the working treestatic final ScmFileStatus
The file in the working tree has differences to the one in repository that conflicts ie.static final ScmFileStatus
The file has been copied in the working tree.static final ScmFileStatus
File is removed from the working tree thus not revisioned anymore.
The file is still present in the repository.
The file could be deleted from the filesystem depending on the provider.static final ScmFileStatus
static final ScmFileStatus
The file is locked.static final ScmFileStatus
The file is missing in the working tree.static final ScmFileStatus
The file has been modified in the working tree.static final ScmFileStatus
The file in the working tree has been updated with changes from the repository.static final ScmFileStatus
The file has been renamed or moved in the working tree.static final ScmFileStatus
The file is part of a tag.static final ScmFileStatus
The file is in the working tree but is not versioned and not ignored either.static final ScmFileStatus
The file is added, removed or updated from the repository, thus its up-to-date with the version in the repository. -
Method Summary
Modifier and TypeMethodDescriptionboolean
isDiff()
There are changes in the working tree that are not committed to the repository.boolean
isStatus()
There are changes in the working tree that are not committed to the repository, or
the file is unknown for the working tree.boolean
boolean
isUpdate()
File is part of an update transaction with the repository.
Note: ADDED and REMOVED are not an update status since they indicates that the working tree has changed.
An update indicates the opposite, that the repository was changed compared to the working tree and that it is now synchronized unless there are conflicts.toString()
-
Field Details
-
ADDED
File is added to the working tree and does not yet exist in the repository -
DELETED
File is removed from the working tree thus not revisioned anymore.
The file is still present in the repository.
The file could be deleted from the filesystem depending on the provider. -
MODIFIED
The file has been modified in the working tree. -
RENAMED
The file has been renamed or moved in the working tree.- Since:
- 1.7
-
COPIED
The file has been copied in the working tree.- Since:
- 1.7
-
MISSING
The file is missing in the working tree. -
CHECKED_IN
File from working tree is checked into the repository -
CHECKED_OUT
File is checked out from the repository and into the working tree -
CONFLICT
The file in the working tree has differences to the one in repository that conflicts ie. it cannot automatically be merged. -
PATCHED
The file in the working tree has been updated with changes from the repository. -
UPDATED
The file is added, removed or updated from the repository, thus its up-to-date with the version in the repository. See also isUpdate() -
TAGGED
The file is part of a tag. -
LOCKED
The file is locked. -
UNKNOWN
The file is in the working tree but is not versioned and not ignored either. -
EDITED
- Since:
- 1.5 The file is being edited
-
-
Method Details
-
toString
-
isStatus
There are changes in the working tree that are not committed to the repository, or
the file is unknown for the working tree.- Returns:
- true on changes in the working tree or if the file is unknown.
-
isDiff
There are changes in the working tree that are not committed to the repository.- Returns:
- true on changes in the working tree
-
isTransaction
- Returns:
- true if the file was part of a transaction with the repository.
-
isUpdate
File is part of an update transaction with the repository.
Note: ADDED and REMOVED are not an update status since they indicates that the working tree has changed.
An update indicates the opposite, that the repository was changed compared to the working tree and that it is now synchronized unless there are conflicts.- Returns:
- true if the status is conflict, updated or patched.
-