1 | /** |
---|
2 | * @copyright |
---|
3 | * ==================================================================== |
---|
4 | * Copyright (c) 2003-2007 CollabNet. All rights reserved. |
---|
5 | * |
---|
6 | * This software is licensed as described in the file COPYING, which |
---|
7 | * you should have received as part of this distribution. The terms |
---|
8 | * are also available at http://subversion.tigris.org/license-1.html. |
---|
9 | * If newer versions of this license are posted there, you may use a |
---|
10 | * newer version instead, at your option. |
---|
11 | * |
---|
12 | * This software consists of voluntary contributions made by many |
---|
13 | * individuals. For exact contribution history, see the revision |
---|
14 | * history and logs, available at http://subversion.tigris.org/. |
---|
15 | * ==================================================================== |
---|
16 | * @endcopyright |
---|
17 | */ |
---|
18 | |
---|
19 | package org.tigris.subversion.javahl; |
---|
20 | |
---|
21 | /** |
---|
22 | * The type of action triggering the notification |
---|
23 | */ |
---|
24 | public interface NotifyAction |
---|
25 | { |
---|
26 | /** Adding a path to revision control. */ |
---|
27 | public static final int add = 0; |
---|
28 | |
---|
29 | /** Copying a versioned path. */ |
---|
30 | public static final int copy = 1; |
---|
31 | |
---|
32 | /** Deleting a versioned path. */ |
---|
33 | public static final int delete =2; |
---|
34 | |
---|
35 | /** Restoring a missing path from the pristine text-base. */ |
---|
36 | public static final int restore = 3; |
---|
37 | |
---|
38 | /** Reverting a modified path. */ |
---|
39 | public static final int revert = 4; |
---|
40 | |
---|
41 | /** A revert operation has failed. */ |
---|
42 | public static final int failed_revert = 5; |
---|
43 | |
---|
44 | /** Resolving a conflict. */ |
---|
45 | public static final int resolved = 6; |
---|
46 | |
---|
47 | /** Skipping a path. */ |
---|
48 | public static final int skip = 7; |
---|
49 | |
---|
50 | /* The update actions are also used for checkouts, switches, and merges. */ |
---|
51 | |
---|
52 | /** Got a delete in an update. */ |
---|
53 | public static final int update_delete = 8; |
---|
54 | |
---|
55 | /** Got an add in an update. */ |
---|
56 | public static final int update_add = 9; |
---|
57 | |
---|
58 | /** Got any other action in an update. */ |
---|
59 | public static final int update_update = 10; |
---|
60 | |
---|
61 | /** The last notification in an update */ |
---|
62 | public static final int update_completed = 11; |
---|
63 | |
---|
64 | /** About to update an external module, use for checkouts and switches too, |
---|
65 | * end with @c svn_wc_update_completed. |
---|
66 | */ |
---|
67 | public static final int update_external = 12; |
---|
68 | |
---|
69 | /** The last notification in a status (including status on externals). */ |
---|
70 | public static final int status_completed = 13; |
---|
71 | |
---|
72 | /** Running status on an external module. */ |
---|
73 | public static final int status_external = 14; |
---|
74 | |
---|
75 | |
---|
76 | /** Committing a modification. */ |
---|
77 | public static final int commit_modified = 15; |
---|
78 | |
---|
79 | /** Committing an addition. */ |
---|
80 | public static final int commit_added = 16; |
---|
81 | |
---|
82 | /** Committing a deletion. */ |
---|
83 | public static final int commit_deleted = 17; |
---|
84 | |
---|
85 | /** Committing a replacement. */ |
---|
86 | public static final int commit_replaced = 18; |
---|
87 | |
---|
88 | /** Transmitting post-fix text-delta data for a file. */ |
---|
89 | public static final int commit_postfix_txdelta = 19; |
---|
90 | |
---|
91 | /** Processed a single revision's blame. */ |
---|
92 | public static final int blame_revision = 20; |
---|
93 | |
---|
94 | /** |
---|
95 | * @since 1.2 |
---|
96 | * Locking a path |
---|
97 | */ |
---|
98 | public static final int locked = 21; |
---|
99 | |
---|
100 | /** |
---|
101 | * @since 1.2 |
---|
102 | * Unlocking a path |
---|
103 | */ |
---|
104 | public static final int unlocked = 22; |
---|
105 | |
---|
106 | /** |
---|
107 | * @since 1.2 |
---|
108 | * Failed to lock a path |
---|
109 | */ |
---|
110 | public static final int failed_lock = 23; |
---|
111 | |
---|
112 | /** |
---|
113 | * @since 1.2 |
---|
114 | * Failed to unlock a path |
---|
115 | */ |
---|
116 | public static final int failed_unlock = 24; |
---|
117 | |
---|
118 | /** |
---|
119 | * @since 1.5 |
---|
120 | * Tried adding a path that already exists. |
---|
121 | */ |
---|
122 | public static final int exists = 25; |
---|
123 | |
---|
124 | /** |
---|
125 | * @since 1.5 |
---|
126 | * Set the changelist for a path. |
---|
127 | */ |
---|
128 | public static final int changelist_set = 26; |
---|
129 | |
---|
130 | /** |
---|
131 | * @since 1.5 |
---|
132 | * Clear the changelist for a path. |
---|
133 | */ |
---|
134 | public static final int changelist_clear = 27; |
---|
135 | |
---|
136 | /** |
---|
137 | * @since 1.5 |
---|
138 | * A merge operation has begun. |
---|
139 | */ |
---|
140 | public static final int merge_begin = 28; |
---|
141 | |
---|
142 | /** |
---|
143 | * @since 1.5 |
---|
144 | * A merge operation from a foreign repository has begun. |
---|
145 | */ |
---|
146 | public static final int foreign_merge_begin = 29; |
---|
147 | |
---|
148 | /** |
---|
149 | * @since 1.5 |
---|
150 | * Got a replaced in an update. |
---|
151 | */ |
---|
152 | public static final int update_replaced = 30; |
---|
153 | |
---|
154 | /** |
---|
155 | * @since 1.6 |
---|
156 | * Property added. |
---|
157 | */ |
---|
158 | public static final int property_added = 31; |
---|
159 | |
---|
160 | /** |
---|
161 | * @since 1.6 |
---|
162 | * Property modified. |
---|
163 | */ |
---|
164 | public static final int property_modified = 32; |
---|
165 | |
---|
166 | /** |
---|
167 | * @since 1.6 |
---|
168 | * Property deleted. |
---|
169 | */ |
---|
170 | public static final int property_deleted = 33; |
---|
171 | |
---|
172 | /** |
---|
173 | * @since 1.6 |
---|
174 | * Property delete nonexistent. |
---|
175 | */ |
---|
176 | public static final int property_deleted_nonexistent = 34; |
---|
177 | |
---|
178 | /** |
---|
179 | * @since 1.6 |
---|
180 | * Revision property set. |
---|
181 | */ |
---|
182 | public static final int revprop_set = 35; |
---|
183 | |
---|
184 | /** |
---|
185 | * @since 1.6 |
---|
186 | * Revision property deleted. |
---|
187 | */ |
---|
188 | public static final int revprop_deleted = 36; |
---|
189 | |
---|
190 | /** |
---|
191 | * @since 1.6 |
---|
192 | * The last notification in a merge |
---|
193 | */ |
---|
194 | public static final int merge_completed = 37; |
---|
195 | |
---|
196 | /** |
---|
197 | * @since 1.6 |
---|
198 | * The path is a tree-conflict victim of the intended action |
---|
199 | */ |
---|
200 | public static final int tree_conflict = 38; |
---|
201 | |
---|
202 | /** |
---|
203 | * textual representation of the action types |
---|
204 | */ |
---|
205 | public static final String[] actionNames = |
---|
206 | { |
---|
207 | "add", |
---|
208 | "copy", |
---|
209 | "delete", |
---|
210 | "restore", |
---|
211 | "revert", |
---|
212 | "failed revert", |
---|
213 | "resolved", |
---|
214 | "skip", |
---|
215 | "update delete", |
---|
216 | "update add", |
---|
217 | "update modified", |
---|
218 | "update completed", |
---|
219 | "update external", |
---|
220 | "status completed", |
---|
221 | "status external", |
---|
222 | "sending modified", |
---|
223 | "sending added ", |
---|
224 | "sending deleted ", |
---|
225 | "sending replaced", |
---|
226 | "transfer", |
---|
227 | "blame revision processed", |
---|
228 | "locked", |
---|
229 | "unlocked", |
---|
230 | "locking failed", |
---|
231 | "unlocking failed", |
---|
232 | "path exists", |
---|
233 | "changelist set", |
---|
234 | "changelist cleared", |
---|
235 | "merge begin", |
---|
236 | "foreign merge begin", |
---|
237 | "replaced", |
---|
238 | "property added", |
---|
239 | "property modified", |
---|
240 | "property deleted", |
---|
241 | "nonexistent property deleted", |
---|
242 | "revprop set", |
---|
243 | "revprop deleted", |
---|
244 | "merge completed", |
---|
245 | "tree conflict" |
---|
246 | }; |
---|
247 | } |
---|