001: /**
002: * @copyright
003: * ====================================================================
004: * Copyright (c) 2003-2004 CollabNet. All rights reserved.
005: *
006: * This software is licensed as described in the file COPYING, which
007: * you should have received as part of this distribution. The terms
008: * are also available at http://subversion.tigris.org/license-1.html.
009: * If newer versions of this license are posted there, you may use a
010: * newer version instead, at your option.
011: *
012: * This software consists of voluntary contributions made by many
013: * individuals. For exact contribution history, see the revision
014: * history and logs, available at http://subversion.tigris.org/.
015: * ====================================================================
016: * @endcopyright
017: */package org.tigris.subversion.javahl;
018:
019: /**
020: * The type of action triggering the notification
021: */
022: public interface NotifyAction {
023: /** Adding a path to revision control. */
024: public static final int add = 0;
025:
026: /** Copying a versioned path. */
027: public static final int copy = 1;
028:
029: /** Deleting a versioned path. */
030: public static final int delete = 2;
031:
032: /** Restoring a missing path from the pristine text-base. */
033: public static final int restore = 3;
034:
035: /** Reverting a modified path. */
036: public static final int revert = 4;
037:
038: /** A revert operation has failed. */
039: public static final int failed_revert = 5;
040:
041: /** Resolving a conflict. */
042: public static final int resolved = 6;
043:
044: /** Skipping a path. */
045: public static final int skip = 7;
046:
047: /* The update actions are also used for checkouts, switches, and merges. */
048:
049: /** Got a delete in an update. */
050: public static final int update_delete = 8;
051:
052: /** Got an add in an update. */
053: public static final int update_add = 9;
054:
055: /** Got any other action in an update. */
056: public static final int update_update = 10;
057:
058: /** The last notification in an update */
059: public static final int update_completed = 11;
060:
061: /** About to update an external module, use for checkouts and switches too,
062: * end with @c svn_wc_update_completed.
063: */
064: public static final int update_external = 12;
065:
066: /** The last notification in a status (including status on externals). */
067: public static final int status_completed = 13;
068:
069: /** Running status on an external module. */
070: public static final int status_external = 14;
071:
072: /** Committing a modification. */
073: public static final int commit_modified = 15;
074:
075: /** Committing an addition. */
076: public static final int commit_added = 16;
077:
078: /** Committing a deletion. */
079: public static final int commit_deleted = 17;
080:
081: /** Committing a replacement. */
082: public static final int commit_replaced = 18;
083:
084: /** Transmitting post-fix text-delta data for a file. */
085: public static final int commit_postfix_txdelta = 19;
086:
087: /** Processed a single revision's blame. */
088: public static final int blame_revision = 20;
089:
090: /**
091: * @since 1.2
092: * Locking a path
093: */
094: public static final int locked = 21;
095:
096: /**
097: * @since 1.2
098: * Unlocking a path
099: */
100: public static final int unlocked = 22;
101:
102: /**
103: * @since 1.2
104: * Failed to lock a path
105: */
106: public static final int failed_lock = 23;
107:
108: /**
109: * @since 1.2
110: * Failed to unlock a path
111: */
112: public static final int failed_unlock = 24;
113:
114: /**
115: * textual representation of the action types
116: */
117: public static final String[] actionNames = { "add", "copy",
118: "delete", "restore", "revert", "failed revert", "resolved",
119: "skip", "update delete", "update add", "update modified",
120: "update completed", "update external", "status completed",
121: "status external", "sending modified", "sending added ",
122: "sending deleted ", "sending replaced", "transfer",
123: "blame revision processed", "locked", "unlocked",
124: "locking failed", "unlocking failed", };
125: }
|