org.tmatesoft.svn.core.wc
public class SVNStatusType extends Object
import org.tmatesoft.svn.core.wc.ISVNEventHandler; import org.tmatesoft.svn.core.wc.SVNStatusType; import org.tmatesoft.svn.core.wc.SVNEventAction; ... public class MyCustomEventHandler implements ISVNEventHandler { public void handleEvent(SVNEvent event, double progress){ ... if(event.getAction() == SVNEventAction.UPDATE_UPDATE){ //get contents status type SVNStatusType contentsStatus = event.getContentsStatus(); //parse it if(contentsStatus != SVNStatusType.INAPPLICABLE){ if(contentsStatus == SVNStatusType.CONFLICTED){ ... } } //get properties status type SVNStatusType propertiesStatus = event.getPropertiesStatus(); //parse it if(propertiesStatus != SVNStatusType.INAPPLICABLE){ if(contentsStatus == SVNStatusType.CONFLICTED){ ... } } } ... } ... }
import org.tmatesoft.svn.core.wc.ISVNStatusHandler; import org.tmatesoft.svn.core.wc.SVNStatus; import org.tmatesoft.svn.core.wc.SVNStatusType; ... public class MyCustomStatusHandler implements ISVNStatusHandler { public void handleStatus(SVNStatus status){ ... //get contents status type SVNStatusType contentsStatus = status.getContentsStatus(); //parse it if(contentsStatus == SVNStatusType.STATUS_MODIFIED){ ... }else if(contentsStatus == SVNStatusType.STATUS_CONFLICTED){ ... } ... //get properties status type SVNStatusType propertiesStatus = status.getPropertiesStatus(); //parse it if(contentsStatus == SVNStatusType.STATUS_MODIFIED){ ... }else if(contentsStatus == SVNStatusType.STATUS_CONFLICTED){ ... } ... } ... }
Version: 1.1.1
Field Summary | |
---|---|
static SVNStatusType | CHANGED
During an operation (like an update) denotes that the item contents
or item properties were changed. |
static SVNStatusType | CONFLICTED
During an operation (like an update) denotes that the file item contents
or file/directory item properties are in conflict with those changes that
came from the repository. |
static SVNStatusType | CONFLICTED_UNRESOLVED
Denotes that the conflict state on the item is still unresolved.
|
static SVNStatusType | INAPPLICABLE
During some operations denotes that status info of item contents or
properties is inapplicable. |
static SVNStatusType | LOCK_INAPPLICABLE
During some operations denotes that lock status is inapplicable.
|
static SVNStatusType | LOCK_LOCKED
During an operation denotes that the file item's locked. |
static SVNStatusType | LOCK_UNCHANGED
During an operation denotes that the lock status wasn't changed. |
static SVNStatusType | LOCK_UNKNOWN
No lock information is known. |
static SVNStatusType | LOCK_UNLOCKED
During an operation (like an update) denotes that the file item's lock
was broken in the repositry by some other user. |
static SVNStatusType | MERGED
During an operation (like an update or merge) denotes that the file
item contents or file/directory item properties were merged
with changes that came from the repository, so that local modifications
and arrived ones do not overlap. |
static SVNStatusType | MISSING
Denotes that the item is versioned but missing (deleted from the
fylesystem). |
static SVNStatusType | OBSTRUCTED
Denotes that the item has an unexpected kind or somehow damaged or
can not be managed by an operation. |
static SVNStatusType | STATUS_ADDED
In a status operation denotes that the item in the Working Copy being
currently processed is scheduled for addition to the repository. |
static SVNStatusType | STATUS_CONFLICTED
In a status operation denotes that the item in the Working Copy being
currently processed is in a conflict state (local changes overlap those
that came from the repository). |
static SVNStatusType | STATUS_DELETED
In a status operation denotes that the item in the Working Copy being
currently processed is scheduled for deletion from the repository. |
static SVNStatusType | STATUS_EXTERNAL
In a status operation denotes that the item in the Working Copy being
currently processed is not under version control but is related to
externals definitions. |
static SVNStatusType | STATUS_IGNORED
In a status operation denotes that the file item in the Working Copy being
currently processed was set to be ignored (was added to svn:ignore property). |
static SVNStatusType | STATUS_INCOMPLETE
In a status operation denotes that the item in the Working Copy being
currently processed is under version control but is somehow incomplete -
for example, it may happen when the previous update was interrupted. |
static SVNStatusType | STATUS_MERGED
In a status operation denotes that the item in the Working Copy being
currently processed was merged - that is it was applied the differences
(delta) between two sources in a merge operation.
|
static SVNStatusType | STATUS_MISSING
In a status operation denotes that the item in the Working Copy being
currently processed is under version control but is missing - for example,
removed from the filesystem with a non-SVN, non-SVNKit or
any other SVN non-compatible delete command). |
static SVNStatusType | STATUS_MODIFIED
In a status operation denotes that the item in the Working Copy being
currently processed has local modifications. |
static SVNStatusType | STATUS_NONE
In a status operation denotes that no status type information is
available. |
static SVNStatusType | STATUS_NORMAL
In a status operation (if it's being running with an option to report
of all items set to true) denotes that the
item in the Working Copy being currently processed has no local changes
(in a normal state). |
static SVNStatusType | STATUS_OBSTRUCTED
In a status operation denotes that the item in the Working Copy being
currently processed has a non-expected kind. |
static SVNStatusType | STATUS_REPLACED
In a status operation denotes that the item in the Working Copy being
currently processed was replaced by another item with the same name (within
a single revision the item was scheduled for deletion and then a new one with
the same name was scheduled for addition). |
static SVNStatusType | STATUS_UNVERSIONED
In a status operation denotes that the item in the Working Copy being
currently processed is not under version control. |
static SVNStatusType | UNCHANGED
During an operation denotes that file item contents or file/directory
item properties are not changed. |
static SVNStatusType | UNKNOWN
Denotes that the resultant status of the operation is for some
reason unknown. |
Method Summary | |
---|---|
char | getCode()
Returns id of this object.
|
int | getID()
Returns this object's identifier as an integer nbumber.
|
String | toString()
Returns a string representation of this object. |
public class MyCommitEventHandler implements ISVNEventHandler{ ... public void handleEvent(SVNEvent event, double progress){ //both are SVNStatusType.INAPPLICABLE SVNStatusType contentsStatus = event.getContentsStatus(); SVNStatusType propsStatus = event.getPropertiesStatus(); } ... }
public class MyCommitEventHandler implements ISVNEventHandler{ ... public void handleEvent(SVNEvent event, double progress){ //is SVNStatusType.LOCK_INAPPLICABLE SVNStatusType lockStatus = event.getLockStatus(); } ... }
Deprecated: this status is never reported by 'status' operation in this version, 'update' and 'merge' uses MERGED instead.
In a status operation denotes that the item in the Working Copy being currently processed was merged - that is it was applied the differences (delta) between two sources in a merge operation.Returns: id code
Returns: id of this object
Returns: a string representing this object