1 package org.apache.maven.scm.provider.accurev;
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22 import java.io.File;
23 import java.text.DateFormat;
24 import java.util.Collection;
25 import java.util.List;
26 import java.util.Map;
27
28 import org.apache.maven.scm.command.blame.BlameLine;
29 import org.apache.maven.scm.util.ThreadSafeDateFormat;
30
31
32
33
34
35
36 public interface AccuRev
37 {
38
39 String DEFAULT_ACCUREV_EXECUTABLE = "accurev";
40
41 int DEFAULT_PORT = 5050;
42
43 String ACCUREV_TIME_FORMAT_STRING = "yyyy/MM/dd HH:mm:ss";
44
45 DateFormat ACCUREV_TIME_SPEC = new ThreadSafeDateFormat( ACCUREV_TIME_FORMAT_STRING );
46
47 String DEFAULT_REMOVE_MESSAGE = "removed (maven-scm)";
48
49 String DEFAULT_ADD_MESSAGE = "initial version (maven-scm)";
50
51 String DEFAULT_PROMOTE_MESSAGE = "promote (maven-scm)";
52
53
54
55
56 void reset();
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72 List<File> popExternal( File basedir, String stream, String tranSpec, Collection<File> elements )
73 throws AccuRevException;
74
75
76
77
78
79
80
81
82
83 List<File> pop( File basedir, Collection<File> elements )
84 throws AccuRevException;
85
86
87
88
89
90
91
92
93
94
95 boolean mkws( String basisStream, String workspaceName, File basedir )
96 throws AccuRevException;
97
98
99
100
101
102
103
104
105
106 List<File> update( File basedir, String transactionId )
107 throws AccuRevException;
108
109
110
111
112
113
114
115 AccuRevInfo info( File basedir )
116 throws AccuRevException;
117
118
119
120
121
122
123
124 boolean rmws( String workSpaceName )
125 throws AccuRevException;
126
127
128
129
130
131
132
133 boolean reactivate( String workSpaceName )
134 throws AccuRevException;
135
136
137
138
139
140
141 String getCommandLines();
142
143
144
145
146
147
148 String getErrorOutput();
149
150
151
152
153
154
155
156
157 List<File> add( File basedir, List<File> files, String message )
158 throws AccuRevException;
159
160
161
162
163
164
165
166
167
168
169 List<File> defunct( File basedir, List<File> files, String message )
170 throws AccuRevException;
171
172
173
174
175
176
177
178
179
180 List<File> promoteAll( File basedir, String message )
181 throws AccuRevException;
182
183 List<File> promote( File basedir, List<File> files, String message )
184 throws AccuRevException;
185
186
187
188
189
190
191
192
193
194
195 boolean chws( File basedir, String workSpaceName, String newBasisStream )
196 throws AccuRevException;
197
198 boolean mksnap( String snapShotName, String basisStream )
199 throws AccuRevException;
200
201 List<File> statTag( String streamName )
202 throws AccuRevException;
203
204
205
206
207
208
209
210
211
212 CategorisedElements statBackingStream( File basedir, Collection<File> elements )
213 throws AccuRevException;
214
215
216
217
218
219
220
221
222 List<File> stat( File basedir, Collection<File> elements, AccuRevStat statType )
223 throws AccuRevException;
224
225
226
227
228
229
230
231 String stat( File element )
232 throws AccuRevException;
233
234 List<Transaction> history( String baseStream, String fromTimeSpec, String toTimeSpec, int count,
235 boolean depotHistory, boolean transactionsOnly )
236 throws AccuRevException;
237
238
239
240
241
242
243
244
245
246
247 List<FileDifference> diff( String baseStream, String fromTimeSpec, String toTimeSpec )
248 throws AccuRevException;
249
250
251
252
253
254
255
256
257 List<BlameLine> annotate( File baseDir, File file )
258 throws AccuRevException;
259
260
261
262
263
264
265
266
267
268 boolean login( String user, String password )
269 throws AccuRevException;
270
271 Map<String, WorkSpace> showWorkSpaces()
272 throws AccuRevException;
273
274 Map<String, WorkSpace> showRefTrees()
275 throws AccuRevException;
276
277 Stream showStream( String stream )
278 throws AccuRevException;
279
280 String getExecutable();
281
282 String getClientVersion()
283 throws AccuRevException;
284
285 boolean syncReplica()
286 throws AccuRevException;
287
288 }