Interface AccuRev
- All Known Implementing Classes:
AccuRevCommandLine
public interface AccuRev
Represents the AccuRev CLI interface
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionAdd the file to the repository.AccuRev annotate an elementboolean
Relocate/reparent a workspaceRemove the file from the repository.AccuRev differences of a stream between to timespecsThe accurev command line strings since last reset(), separated by ";"Full output of accurev command line invocations since resethistory
(String baseStream, String fromTimeSpec, String toTimeSpec, int count, boolean depotHistory, boolean transactionsOnly) Get info about the current logged in user for the current workspace.boolean
Logins in as the given user, retains authtoken for use with subsequent commands.boolean
boolean
Make workspacepop
(File basedir, Collection<File> elements) Re populate missing files to existing workspace.popExternal
(File basedir, String stream, String tranSpec, Collection<File> elements) Populate external to a workspace a (stream) and transactionId/time, to a specific location.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 workspacevoid
reset()
Reset command process, clear command output accumulatorsboolean
Deactivate a workspaceshowStream
(String stream) Accurev status of an elementstat
(File basedir, Collection<File> elements, AccuRevStat statType) statBackingStream
(File basedir, Collection<File> elements) Sorts list of elements by whether they exist in the backing stream or not.boolean
Update a workspace or reftree, to a particular transaction id
-
Field Details
-
DEFAULT_ACCUREV_EXECUTABLE
- See Also:
-
DEFAULT_PORT
static final int DEFAULT_PORT- See Also:
-
ACCUREV_TIME_FORMAT_STRING
- See Also:
-
ACCUREV_TIME_SPEC
-
DEFAULT_REMOVE_MESSAGE
- See Also:
-
DEFAULT_ADD_MESSAGE
- See Also:
-
DEFAULT_PROMOTE_MESSAGE
- See Also:
-
-
Method Details
-
reset
void reset()Reset command process, clear command output accumulators -
popExternal
List<File> popExternal(File basedir, String stream, String tranSpec, Collection<File> elements) throws AccuRevException Populate external to a workspace a (stream) and transactionId/time, to a specific location.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- Parameters:
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)- Returns:
- Throws:
AccuRevException
-
pop
Re populate missing files to existing workspace.- Parameters:
basedir
-elements
-- Returns:
- Throws:
AccuRevException
-
mkws
Make workspace- Parameters:
basisStream
-workspaceName
-basedir
-- Returns:
- Throws:
AccuRevException
-
update
Update a workspace or reftree, to a particular transaction id- Parameters:
basedir
-transactionId
-- Returns:
- Throws:
AccuRevException
-
info
Get info about the current logged in user for the current workspace.- Parameters:
basedir
-- Returns:
- Throws:
AccuRevException
-
rmws
Deactivate a workspace- Parameters:
workSpaceName
- full name of the workspace, including the user suffix- Returns:
- Throws:
AccuRevException
-
reactivate
Reactivate a workspace- Parameters:
workSpaceName
- full name of the workspace, including the user suffix- Returns:
- Throws:
AccuRevException
-
getCommandLines
String getCommandLines()The accurev command line strings since last reset(), separated by ";"- Returns:
-
getErrorOutput
String getErrorOutput()Full output of accurev command line invocations since reset- Returns:
-
add
Add the file to the repository. File must be within a workspace- Parameters:
basedir
- base directory of the workspacefiles
- to add (relative to basedir, or absolute)message
- the commit message- Throws:
AccuRevException
-
defunct
Remove the file from the repository. Files must be within a workspace- Parameters:
basedir
-files
-message
-- Returns:
- Throws:
AccuRevException
-
promoteAll
Any elements that have been kept previously or are currently modified will be promoted.- Parameters:
basedir
- - location of the workspace to act onmessage
-- Returns:
- Throws:
AccuRevException
-
promote
- Throws:
AccuRevException
-
chws
Relocate/reparent a workspace- Parameters:
basedir
-workSpaceName
- (full workspacename including user)newBasisStream
-- Returns:
- Throws:
AccuRevException
-
mksnap
- Throws:
AccuRevException
-
statTag
- Throws:
AccuRevException
-
statBackingStream
CategorisedElements statBackingStream(File basedir, Collection<File> elements) throws AccuRevException Sorts list of elements by whether they exist in the backing stream or not.- Parameters:
basedir
-elements
-- Returns:
- Throws:
AccuRevException
-
stat
List<File> stat(File basedir, Collection<File> elements, AccuRevStat statType) throws AccuRevException - Parameters:
basedir
-elements
- list of elements to stat, relative to basedirstatType
-- Returns:
- Throws:
AccuRevException
-
stat
Accurev status of an element- Parameters:
element
-- Returns:
- null if ignored or not in workspace
- Throws:
AccuRevException
-
history
List<Transaction> history(String baseStream, String fromTimeSpec, String toTimeSpec, int count, boolean depotHistory, boolean transactionsOnly) throws AccuRevException - Throws:
AccuRevException
-
diff
List<FileDifference> diff(String baseStream, String fromTimeSpec, String toTimeSpec) throws AccuRevException AccuRev differences of a stream between to timespecs- Parameters:
baseStream
-fromTimeSpec
-toTimeSpec
-- Returns:
- Throws:
AccuRevException
-
annotate
AccuRev annotate an element- Parameters:
file
-- Returns:
- Throws:
AccuRevException
-
login
Logins in as the given user, retains authtoken for use with subsequent commands.- Parameters:
user
-password
-- Returns:
- Throws:
AccuRevException
-
showWorkSpaces
- Throws:
AccuRevException
-
showRefTrees
- Throws:
AccuRevException
-
showStream
- Throws:
AccuRevException
-
getExecutable
String getExecutable() -
getClientVersion
- Throws:
AccuRevException
-
syncReplica
- Throws:
AccuRevException
-