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)AccuRevExceptionList<File> pop(File basedir, Collection<File> elements) throws AccuRevException
basedir - elements - AccuRevExceptionboolean mkws(String basisStream, String workspaceName, File basedir) throws AccuRevException
basisStream - workspaceName - basedir - AccuRevExceptionList<File> update(File basedir, String transactionId) throws AccuRevException
basedir - transactionId - AccuRevExceptionAccuRevInfo info(File basedir) throws AccuRevException
basedir - AccuRevExceptionboolean rmws(String workSpaceName) throws AccuRevException
workSpaceName - full name of the workspace, including the user suffixAccuRevExceptionboolean reactivate(String workSpaceName) throws AccuRevException
workSpaceName - full name of the workspace, including the user suffixAccuRevExceptionString 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 messageAccuRevExceptionList<File> defunct(File basedir, List<File> files, String message) throws AccuRevException
basedir - files - message - AccuRevExceptionList<File> promoteAll(File basedir, String message) throws AccuRevException
basedir - - location of the workspace to act onmessage - AccuRevExceptionList<File> promote(File basedir, List<File> files, String message) throws AccuRevException
AccuRevExceptionboolean chws(File basedir, String workSpaceName, String newBasisStream) throws AccuRevException
basedir - workSpaceName - (full workspacename including user)newBasisStream - AccuRevExceptionboolean mksnap(String snapShotName, String basisStream) throws AccuRevException
AccuRevExceptionList<File> statTag(String streamName) throws AccuRevException
AccuRevExceptionCategorisedElements statBackingStream(File basedir, Collection<File> elements) throws AccuRevException
basedir - elements - AccuRevExceptionList<File> stat(File basedir, Collection<File> elements, AccuRevStat statType) throws AccuRevException
basedir - elements - list of elements to stat, relative to basedirstatType - AccuRevExceptionString stat(File element) throws AccuRevException
element - AccuRevExceptionList<Transaction> history(String baseStream, String fromTimeSpec, String toTimeSpec, int count, boolean depotHistory, boolean transactionsOnly) throws AccuRevException
AccuRevExceptionList<FileDifference> diff(String baseStream, String fromTimeSpec, String toTimeSpec) throws AccuRevException
baseStream - fromTimeSpec - toTimeSpec - AccuRevExceptionList<BlameLine> annotate(File baseDir, File file) throws AccuRevException
file - AccuRevExceptionboolean login(String user, String password) throws AccuRevException
user - password - AccuRevExceptionMap<String,WorkSpace> showWorkSpaces() throws AccuRevException
AccuRevExceptionMap<String,WorkSpace> showRefTrees() throws AccuRevException
AccuRevExceptionStream showStream(String stream) throws AccuRevException
AccuRevExceptionString getExecutable()
String getClientVersion() throws AccuRevException
AccuRevExceptionboolean syncReplica() throws AccuRevException
AccuRevExceptionCopyright © 2003–2018 The Apache Software Foundation. All rights reserved.