public interface AccuRev
Modifier and Type | Field and Description |
---|---|
static String |
ACCUREV_TIME_FORMAT_STRING |
static DateFormat |
ACCUREV_TIME_SPEC |
static String |
DEFAULT_ACCUREV_EXECUTABLE |
static String |
DEFAULT_ADD_MESSAGE |
static int |
DEFAULT_PORT |
static String |
DEFAULT_PROMOTE_MESSAGE |
static String |
DEFAULT_REMOVE_MESSAGE |
Modifier and Type | Method and Description |
---|---|
List<File> |
add(File basedir,
List<File> files,
String message)
Add the file to the repository.
|
List<BlameLine> |
annotate(File baseDir,
File file)
AccuRev annotate an element
|
boolean |
chws(File basedir,
String workSpaceName,
String newBasisStream)
Relocate/reparent a workspace
|
List<File> |
defunct(File basedir,
List<File> files,
String message)
Remove the file from the repository.
|
List<FileDifference> |
diff(String baseStream,
String fromTimeSpec,
String toTimeSpec)
AccuRev differences of a stream between to timespecs
|
String |
getClientVersion() |
String |
getCommandLines()
The accurev command line strings since last reset(), separated by ";"
|
String |
getErrorOutput()
Full output of accurev command line invocations since reset
|
String |
getExecutable() |
List<Transaction> |
history(String baseStream,
String fromTimeSpec,
String toTimeSpec,
int count,
boolean depotHistory,
boolean transactionsOnly) |
AccuRevInfo |
info(File basedir)
Get info about the current logged in user for the current workspace.
|
boolean |
login(String user,
String password)
Logins in as the given user, retains authtoken for use with subsequent commands.
|
boolean |
mksnap(String snapShotName,
String basisStream) |
boolean |
mkws(String basisStream,
String workspaceName,
File basedir)
Make workspace
|
List<File> |
pop(File basedir,
Collection<File> elements)
Re populate missing files to existing workspace.
|
List<File> |
popExternal(File basedir,
String stream,
String tranSpec,
Collection<File> elements)
Populate external to a workspace a (stream) and transactionId/time, to a specific location.
|
List<File> |
promote(File basedir,
List<File> files,
String message) |
List<File> |
promoteAll(File basedir,
String message)
Any elements that have been kept previously or are currently modified will be promoted.
|
boolean |
reactivate(String workSpaceName)
Reactivate a workspace
|
void |
reset()
Reset command process, clear command output accumulators
|
boolean |
rmws(String workSpaceName)
Deactivate a workspace
|
Map<String,WorkSpace> |
showRefTrees() |
Stream |
showStream(String stream) |
Map<String,WorkSpace> |
showWorkSpaces() |
String |
stat(File element)
Accurev status of an element
|
List<File> |
stat(File basedir,
Collection<File> elements,
AccuRevStat statType) |
CategorisedElements |
statBackingStream(File basedir,
Collection<File> elements)
Sorts list of elements by whether they exist in the backing stream or not.
|
List<File> |
statTag(String streamName) |
boolean |
syncReplica() |
List<File> |
update(File basedir,
String transactionId)
Update a workspace or reftree, to a particular transaction id
|
static final String DEFAULT_ACCUREV_EXECUTABLE
static final int DEFAULT_PORT
static final String ACCUREV_TIME_FORMAT_STRING
static final DateFormat ACCUREV_TIME_SPEC
static final String DEFAULT_REMOVE_MESSAGE
static final String DEFAULT_ADD_MESSAGE
static final String DEFAULT_PROMOTE_MESSAGE
void reset()
List<File> popExternal(File basedir, String stream, String tranSpec, Collection<File> elements) throws AccuRevException
You must check AccuRevCapability.POPULATE_TO_TRANSACTION
before passing a tranid/time
to this method. If not supported should pass "now","highest" or null for tranSpec
basedir
- stream
- stream to update totranSpec
- transaction to update to or "now" if not supported.elements
- (must be depot relative. if null "/./" root is used)AccuRevException
List<File> pop(File basedir, Collection<File> elements) throws AccuRevException
basedir
- elements
- AccuRevException
boolean mkws(String basisStream, String workspaceName, File basedir) throws AccuRevException
basisStream
- workspaceName
- basedir
- AccuRevException
List<File> update(File basedir, String transactionId) throws AccuRevException
basedir
- transactionId
- AccuRevException
AccuRevInfo info(File basedir) throws AccuRevException
basedir
- AccuRevException
boolean rmws(String workSpaceName) throws AccuRevException
workSpaceName
- full name of the workspace, including the user suffixAccuRevException
boolean reactivate(String workSpaceName) throws AccuRevException
workSpaceName
- full name of the workspace, including the user suffixAccuRevException
String getCommandLines()
String getErrorOutput()
List<File> add(File basedir, List<File> files, String message) throws AccuRevException
basedir
- base directory of the workspacefiles
- to add (relative to basedir, or absolute)message
- the commit messageAccuRevException
List<File> defunct(File basedir, List<File> files, String message) throws AccuRevException
basedir
- files
- message
- AccuRevException
List<File> promoteAll(File basedir, String message) throws AccuRevException
basedir
- - location of the workspace to act onmessage
- AccuRevException
List<File> promote(File basedir, List<File> files, String message) throws AccuRevException
AccuRevException
boolean chws(File basedir, String workSpaceName, String newBasisStream) throws AccuRevException
basedir
- workSpaceName
- (full workspacename including user)newBasisStream
- AccuRevException
boolean mksnap(String snapShotName, String basisStream) throws AccuRevException
AccuRevException
List<File> statTag(String streamName) throws AccuRevException
AccuRevException
CategorisedElements statBackingStream(File basedir, Collection<File> elements) throws AccuRevException
basedir
- elements
- AccuRevException
List<File> stat(File basedir, Collection<File> elements, AccuRevStat statType) throws AccuRevException
basedir
- elements
- list of elements to stat, relative to basedirstatType
- AccuRevException
String stat(File element) throws AccuRevException
element
- AccuRevException
List<Transaction> history(String baseStream, String fromTimeSpec, String toTimeSpec, int count, boolean depotHistory, boolean transactionsOnly) throws AccuRevException
AccuRevException
List<FileDifference> diff(String baseStream, String fromTimeSpec, String toTimeSpec) throws AccuRevException
baseStream
- fromTimeSpec
- toTimeSpec
- AccuRevException
List<BlameLine> annotate(File baseDir, File file) throws AccuRevException
file
- AccuRevException
boolean login(String user, String password) throws AccuRevException
user
- password
- AccuRevException
Map<String,WorkSpace> showWorkSpaces() throws AccuRevException
AccuRevException
Map<String,WorkSpace> showRefTrees() throws AccuRevException
AccuRevException
Stream showStream(String stream) throws AccuRevException
AccuRevException
String getExecutable()
String getClientVersion() throws AccuRevException
AccuRevException
boolean syncReplica() throws AccuRevException
AccuRevException
Copyright © 2003–2015 The Apache Software Foundation. All rights reserved.