AcUtils
A high performance abstraction layer for AccuRev
|
A container of AcWorkspace objects that define AccuRev workspaces in the repository. More...
Public Member Functions | |
AcDepot | getDepot (string name) |
Get the AcDepot object that workspace name is located in. More... | |
AcWorkspace | getWorkspace (AcDepot depot, int ID) |
Get the AcWorkspace object in depot with workspace ID number. More... | |
AcWorkspace | getWorkspace (string name) |
Get the AcWorkspace object for workspace name. More... | |
Two-part object construction: | |
AcWorkspaces (AcDepots depots, bool allWSpaces, bool includeHidden, bool includeRefTrees=false) | |
A container of AcWorkspace objects that define AccuRev workspaces in the repository. More... | |
async Task< bool > | initAsync (AcDepot depot=null) |
Populate this container with AcWorkspace objects as per constructor parameters. More... | |
Private Member Functions | |
async Task< AcResult > | getWorkspacesXMLAsync () |
Get the list of workspaces in XML for all or the current user and optionally include inactive workspaces as per AcWorkspaces constructor includeHidden parameter. More... | |
async Task< AcResult > | getReferenceTreesXMLAsync () |
Get the list of reference trees in XML and optionally include those that are inactive as per AcWorkspaces constructor includeHidden parameter. More... | |
bool | storeWSpaces (AcResult result, AcDepot depot=null) |
Convert AcResult.CmdResult XML from result into AcWorkspace objects and add them to our container. Filters out workspace/ref trees that are not in the user's default list of depots they can view based on ACL permissions. More... | |
A container of AcWorkspace objects that define AccuRev workspaces in the repository.
Definition at line 438 of file AcWorkspaces.cs.
|
inline |
A container of AcWorkspace objects that define AccuRev workspaces in the repository.
depots | AcDepots creation defaults to the list of depots the script user has access rights to view based on their ACL permissions. |
allWSpaces | true to include all workspaces, not just those that belong to the principal. |
includeHidden | true to include deactivated (removed) workspaces/reference trees. |
includeRefTrees | true to include reference trees. |
Definition at line 484 of file AcWorkspaces.cs.
|
inline |
Get the AcDepot object that workspace name is located in.
name | Workspace name to query. |
Definition at line 678 of file AcWorkspaces.cs.
|
inlineprivate |
Get the list of reference trees in XML and optionally include those that are inactive as per AcWorkspaces constructor includeHidden parameter.
show
command results, or null on error.show <-fvx | -fvix> refs
AcUtilsException | caught and logged in %LOCALAPPDATA%\AcTools\Logs\<prog_name>-YYYY-MM-DD.log on show refs command failure. |
Exception | caught and logged in same on failure to handle a range of exceptions. |
Definition at line 587 of file AcWorkspaces.cs.
Referenced by AcUtils.AcWorkspaces.initAsync().
|
inline |
Get the AcWorkspace object in depot with workspace ID number.
depot | Depot where the workspace resides. |
ID | Workspace ID number to query. |
Definition at line 690 of file AcWorkspaces.cs.
|
inline |
Get the AcWorkspace object for workspace name.
name | Workspace name to query. |
Definition at line 700 of file AcWorkspaces.cs.
|
inlineprivate |
Get the list of workspaces in XML for all or the current user and optionally include inactive workspaces as per AcWorkspaces constructor includeHidden parameter.
show
command results, otherwise null on error.show <-fvx | -fvix> <-a | > wspaces
AcUtilsException | caught and logged in %LOCALAPPDATA%\AcTools\Logs\<prog_name>-YYYY-MM-DD.log on show wspaces command failure. |
Exception | caught and logged in same on failure to handle a range of exceptions. |
Definition at line 542 of file AcWorkspaces.cs.
Referenced by AcUtils.AcWorkspaces.initAsync().
|
inline |
Populate this container with AcWorkspace objects as per constructor parameters.
The resultant list includes only workspaces from depots the user has permission to access.
depot | Specify a depot to limit the query to workspaces in depot only, not all depots in the repository. |
Definition at line 499 of file AcWorkspaces.cs.
Convert AcResult.CmdResult XML from result into AcWorkspace objects and add them to our container. Filters out workspace/ref trees that are not in the user's default list of depots they can view based on ACL permissions.
result | Previously initialized AcResult object from AcWorkspaces.getWorkspacesXMLAsync and AcWorkspaces.getReferenceTreesXMLAsync. |
depot | Specify a depot to limit the query to workspaces and ref trees in depot only, not the users default list of depots. |
Exception | caught and logged in %LOCALAPPDATA%\AcTools\Logs\<prog_name>-YYYY-MM-DD.log on failure to handle a range of exceptions. |
Definition at line 619 of file AcWorkspaces.cs.
Referenced by AcUtils.AcWorkspaces.initAsync().