public final class ScmFileStatus extends Object implements Serializable
Modifier and Type | Field and Description |
---|---|
static ScmFileStatus |
ADDED
File is added to the working tree and does not yet exist in the repository
|
static ScmFileStatus |
CHECKED_IN
File from working tree is checked into the repository
|
static ScmFileStatus |
CHECKED_OUT
File is checked out from the repository and into the working tree
|
static ScmFileStatus |
CONFLICT
The file in the working tree has differences to the one in repository that
conflicts ie.
|
static ScmFileStatus |
COPIED
The file has been copied in the working tree.
|
static ScmFileStatus |
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. |
static ScmFileStatus |
EDITED |
static ScmFileStatus |
LOCKED
The file is locked.
|
static ScmFileStatus |
MISSING
The file is missing in the working tree.
|
static ScmFileStatus |
MODIFIED
The file has been modified in the working tree.
|
static ScmFileStatus |
PATCHED
The file in the working tree has been updated with changes from the repository.
|
static ScmFileStatus |
RENAMED
The file has been renamed or moved in the working tree.
|
static ScmFileStatus |
TAGGED
The file is part of a tag.
|
static ScmFileStatus |
UNKNOWN
The file is in the working tree but is not versioned and not ignored either.
|
static ScmFileStatus |
UPDATED
The file is added, removed or updated from the repository, thus its
up-to-date with the version in the repository.
|
Modifier and Type | Method and Description |
---|---|
boolean |
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 |
isTransaction() |
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. |
String |
toString() |
public static final ScmFileStatus ADDED
public static final ScmFileStatus DELETED
public static final ScmFileStatus MODIFIED
public static final ScmFileStatus RENAMED
public static final ScmFileStatus COPIED
public static final ScmFileStatus MISSING
public static final ScmFileStatus CHECKED_IN
public static final ScmFileStatus CHECKED_OUT
public static final ScmFileStatus CONFLICT
public static final ScmFileStatus PATCHED
public static final ScmFileStatus UPDATED
public static final ScmFileStatus TAGGED
public static final ScmFileStatus LOCKED
public static final ScmFileStatus UNKNOWN
public static final ScmFileStatus EDITED
public boolean isStatus()
public boolean isDiff()
public boolean isTransaction()
public boolean isUpdate()
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.