Class SVNEventAction
Each operation invoked by
a do*() method of an SVN*Client class consists of
several actions that can be considered as operation steps. For example,
an update operation receives changes for files, adds new ones, deletes
another ones and so on. And for every such action (for every file
updated, deleted, added, etc.) the
doUpdate()
method generates an SVNEvent objects which contains information
on the type of this action that can be retrieved simply calling
the SVNEvent's getAction()
method:
import org.tmatesoft.svn.core.wc.SVNEvent; import org.tmatesoft.svn.core.wc.SVNEventAction; ... SVNEventAction action = event.getAction(); //parse the action according to the type of //operation and your needs if (action == SVNEventAction.UPDATE_UPDATE){ ... } ...
SVNEventAction is just a set of predefined constant fields of the same type. Each constant is applicable only to a certain type of operation - for example those constants that names start with the UPDATE_ prefix are relevant only for update related operations (update, checkout, switch, etc.).
- Since:
- 1.2
- Version:
- 1.3
- Author:
- TMate Software Ltd.
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SVNEventAction
Denotes that a new item is scheduled for addition.static final SVNEventAction
Denotes that file blaming is started.static final SVNEventAction
Denotes that changelist name is cleared.static final SVNEventAction
Denotes that a path has moved from one changelist to another.static final SVNEventAction
Denotes that changelist name is set.static final SVNEventAction
static final SVNEventAction
In a commit operation denotes adding a new item to the repository.static final SVNEventAction
In a commit operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the committed revision).static final SVNEventAction
In a commit operation denotes deleting the item from the repository.static final SVNEventAction
In a commit operation denotes the final stage of the operation - sending all file data and finalizing the commit.static final SVNEventAction
static final SVNEventAction
In a commit operation denotes sending the item's modifications to the repository.static final SVNEventAction
In a commit operation denotes replacing (one item was deleted while another one with the same name was added) the item in the repository.static final SVNEventAction
Denotes that the item is copied with history.static final SVNEventAction
Denotes that the item is scheduled for deletion.static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
Denotes that a revert operation failed.static final SVNEventAction
static final SVNEventAction
Denotes that a merge operation (to path) from a foreign repository has begun.static final SVNEventAction
static final SVNEventAction
Denotes that locking a file item failed.static final SVNEventAction
Denotes that the file item is locked as a result of a locking operation.static final SVNEventAction
Denotes that a merge operation (to path) has begun.static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
Reserved for future purposes.static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
Denotes that the conflict on the item is resolved (the item is marked resolved).static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
Denotes that the deleted item is restored (prior to be updated).static final SVNEventAction
Denotes that all local changes to the item were reverted.static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
Denotes that the operation is skipped due to errors (inability to be performed, etc.).static final SVNEventAction
static final SVNEventAction
In a remote status operation denotes that the operation itself is completed - used to get the latest repository revision against which the status was invoked.static final SVNEventAction
In a status operation denotes that the status is performed on an external item.static final SVNEventAction
static final SVNEventAction
Denotes that unlocking a file item failed.static final SVNEventAction
Denotes that the file item is unlocked as a result of an unlocking operation.static final SVNEventAction
In an update operation denotes that the item is added to the Working Copy (as it was added in the repository).static final SVNEventAction
static final SVNEventAction
In an update operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the revision updated to).static final SVNEventAction
In an update operation denotes that the item is deleted from the Working Copy (as it was deleted in the repository).static final SVNEventAction
Denotes that tried adding a path that already exists.static final SVNEventAction
In an update operation denotes that the item being updated is external.static final SVNEventAction
static final SVNEventAction
In an update operation denotes that the item is not modified, but its children are.static final SVNEventAction
Denotes a replace notification.static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
static final SVNEventAction
In an update operation denotes that the item is modified (there are changes received from the repository).static final SVNEventAction
Denotes that the current format of the working copy administrative area is upgraded to a newer one.static final SVNEventAction
An working copy directory was upgraded to the latest formatstatic final SVNEventAction
The server has instructed the client to follow a URL redirection. -
Method Summary
Modifier and TypeMethodDescriptionstatic SVNEventAction
getEventActionById
(int id) int
getID()
Returns this object's identifier.toString()
Returns a string representation of this object.
-
Field Details
-
PROGRESS
Reserved for future purposes. -
ADD
Denotes that a new item is scheduled for addition. Generated by thedoAdd()
method. -
COPY
Denotes that the item is copied with history.- See Also:
-
DELETE
Denotes that the item is scheduled for deletion. Generated by thedoDelete()
method. -
RESTORE
Denotes that the deleted item is restored (prior to be updated). -
REVERT
Denotes that all local changes to the item were reverted. Generated by thedoRevert()
method. -
FAILED_REVERT
Denotes that a revert operation failed. Generated by thedoRevert()
method. -
RESOLVED
Denotes that the conflict on the item is resolved (the item is marked resolved). Such an event is generated by thedoResolve()
method. -
SKIP
Denotes that the operation is skipped due to errors (inability to be performed, etc.). -
UPDATE_DELETE
In an update operation denotes that the item is deleted from the Working Copy (as it was deleted in the repository). -
UPDATE_ADD
In an update operation denotes that the item is added to the Working Copy (as it was added in the repository). -
UPDATE_UPDATE
In an update operation denotes that the item is modified (there are changes received from the repository). -
UPDATE_NONE
In an update operation denotes that the item is not modified, but its children are. -
UPDATE_COMPLETED
In an update operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the revision updated to). -
UPDATE_EXTERNAL
In an update operation denotes that the item being updated is external. -
STATUS_COMPLETED
In a remote status operation denotes that the operation itself is completed - used to get the latest repository revision against which the status was invoked. -
STATUS_EXTERNAL
In a status operation denotes that the status is performed on an external item. To find out the item's current status usegetContentsStatus()
,getPropertiesStatus()
. TheSVNStatusType.STATUS_EXTERNAL
constant says only that the item belongs to externals definitions. -
COMMIT_MODIFIED
In a commit operation denotes sending the item's modifications to the repository. -
COMMIT_ADDED
In a commit operation denotes adding a new item to the repository. -
COMMIT_DELETED
In a commit operation denotes deleting the item from the repository. -
COMMIT_REPLACED
In a commit operation denotes replacing (one item was deleted while another one with the same name was added) the item in the repository. -
COMMIT_DELTA_SENT
In a commit operation denotes the final stage of the operation - sending all file data and finalizing the commit. -
COMMIT_COMPLETED
In a commit operation denotes that the operation itself is completed (for instance, in a console client can be used to print out the committed revision). -
ANNOTATE
Denotes that file blaming is started. -
LOCKED
Denotes that the file item is locked as a result of a locking operation. Generated by a doLock() method ofSVNWCClient
. -
UNLOCKED
Denotes that the file item is unlocked as a result of an unlocking operation. Generated by a doUnlock() method ofSVNWCClient
. -
LOCK_FAILED
Denotes that locking a file item failed. Generated by a doLock() method ofSVNWCClient
. -
UNLOCK_FAILED
Denotes that unlocking a file item failed. Generated by a doUnlock() method ofSVNWCClient
. -
UPGRADE
Denotes that the current format of the working copy administrative area is upgraded to a newer one. -
UPGRADED_PATH
An working copy directory was upgraded to the latest format- Since:
- New in 1.7.
-
URL_REDIRECT
The server has instructed the client to follow a URL redirection.- Since:
- SVN 1.7.
-
UPDATE_EXISTS
Denotes that tried adding a path that already exists.- Since:
- 1.2.0, SVN 1.5.0
-
CHANGELIST_SET
Denotes that changelist name is set.- Since:
- 1.2.0, SVN 1.5.0
-
CHANGELIST_CLEAR
Denotes that changelist name is cleared.- Since:
- 1.2.0, SVN 1.5.0
-
CHANGELIST_MOVED
Denotes that a path has moved from one changelist to another.- Since:
- 1.2.0, SVN 1.5.0
-
MERGE_BEGIN
Denotes that a merge operation (to path) has begun. SeeSVNEvent.getMergeRange()
.- Since:
- 1.2.0, SVN 1.5.0
-
FOREIGN_MERGE_BEGIN
Denotes that a merge operation (to path) from a foreign repository has begun. SeeSVNEvent.getMergeRange()
.- Since:
- 1.2.0, SVN 1.5.0
-
UPDATE_REPLACE
Denotes a replace notification.- Since:
- 1.2.0, SVN 1.5.0
-
PROPERTY_ADD
- Since:
- 1.3, SVN 1.6
-
PROPERTY_MODIFY
- Since:
- 1.3, SVN 1.6
-
PROPERTY_DELETE
- Since:
- 1.3, SVN 1.6
-
PROPERTY_DELETE_NONEXISTENT
- Since:
- 1.3, SVN 1.6
-
REVPROPER_SET
- Since:
- 1.3, SVN 1.6
-
REVPROP_DELETE
- Since:
- 1.3, SVN 1.6
-
MERGE_COMPLETE
- Since:
- 1.3, SVN 1.6
-
TREE_CONFLICT
- Since:
- 1.3, SVN 1.6
-
FAILED_EXTERNAL
- Since:
- 1.3, SVN 1.6
-
PATCH
- Since:
- 1.4, SVN 1.7
-
UPDATE_STARTED
- Since:
- 1.4, SVN 1.7
-
PATCH_REJECTED_HUNK
- Since:
- 1.4, SVN 1.7
-
PATCH_APPLIED_HUNK
- Since:
- 1.4, SVN 1.7
-
PATCH_HUNK_ALREADY_APPLIED
- Since:
- 1.4, SVN 1.7
-
UPDATE_SKIP_OBSTRUCTION
- Since:
- 1.4, SVN 1.7
-
UPDATE_SKIP_WORKING_ONLY
- Since:
- 1.4, SVN 1.7
-
UPDATE_SKIP_ACCESS_DENINED
- Since:
- 1.4, SVN 1.7
-
UPDATE_EXTERNAL_REMOVED
- Since:
- 1.4, SVN 1.7
-
UPDATE_SHADOWED_ADD
- Since:
- 1.4, SVN 1.7
-
UPDATE_SHADOWED_UPDATE
- Since:
- 1.4, SVN 1.7
-
UPDATE_SHADOWED_DELETE
- Since:
- 1.4, SVN 1.7
-
SKIP_CONFLICTED
- Since:
- 1.4, SVN 1.7
-
PATH_NONEXISTENT
- Since:
- 1.7, SVN 1.7
-
MERGE_RECORD_INFO
- Since:
- 1.7, SVN 1.7
-
MERGE_RECORD_INFO_BEGIN
- Since:
- 1.7, SVN 1.7
-
MERGE_ELIDE_INFO
- Since:
- 1.7, SVN 1.7
-
FAILED_OUT_OF_DATE
- Since:
- 1.7, SVN 1.7
-
FAILED_NO_PARENT
- Since:
- 1.7, SVN 1.7
-
FAILED_LOCKED
- Since:
- 1.7, SVN 1.7
-
FAILED_FORBIDDEN_BY_SERVER
- Since:
- 1.7, SVN 1.7
-
UPDATE_BROKEN_LOCK
- Since:
- 1.8, SVN 1.8
-
RESOLVER_STARTING
- Since:
- 1.8, SVN 1.8
-
RESOLVER_DONE
- Since:
- 1.8, SVN 1.8
-
FAILED_OBSTRUCTION
- Since:
- 1.8, SVN 1.8
-
FAILED_CONFLICT
- Since:
- 1.7, SVN 1.7
-
FAILED_MISSING
- Since:
- 1.7, SVN 1.7
-
FOREIGN_COPY_BEGIN
- Since:
- 1.8, SVN 1.8
-
MOVE_BROKEN
- Since:
- 1.8, SVN 1.8
-
CLEANUP_EXTERNAL
- Since:
- 1.9, SVN 1.9
-
FAILED_REQUIRES_TARGET
- Since:
- 1.9, SVN 1.9
-
INFO_EXTERNAL
- Since:
- 1.9, SVN 1.9
-
COMMIT_FINALIZING
- Since:
- 1.9, SVN 1.9
-
-
Method Details
-
getEventActionById
-
getID
public int getID()Returns this object's identifier. Each constant field of the SVNEventAction class is also an SVNEventAction object with its own id.- Returns:
- id of this object
-
toString
Returns a string representation of this object. As a matter of fact this is a string representation of this object's id.
-