Send workspace default group to another workspace


Follow these steps to send the default group of one workspace to another workspace. In the example below, ABC_DEV2_buttobr is the source workspace.

Open a command window on the destination machine, cd to the destination workspace location, and enter the following commands:

  1. accurev stat -fl -d -s ABC_DEV2_buttobr > elems.txt (redirect output to a file)
  2. accurev co -v ABC_DEV2_buttobr -c "Test Brian's changes." -l elems.txt
  3. del elems.txt (delete the file since it is no longer needed.)

The commands should be typed on the command line rather than copy/pasting the text above to avoid encoding issues. Note that in both commands, the l is a lowercase L (not the numeral one).

If a source workspace element is active in the destination workspace, AccuRev will abort the entire co operation. In that event, no versions will be sent from the source workspace to the destination workspace.

This effectively does a co (Send-to-Workspace) operation of all default group elements from the source workspace to the destination workspace making them active members there. To view the results, open the destination workspace in the GUI and select Default Group in the search pane; each element will have (member) status.

Since the co command adds these elements to the destination workspace's default group, they will be ignored by future updates. Remember that update always skips over members of the default group when deciding which elements to update. If you want to remove them from your default group, either promote or purge them (Revert-to-Backed). Both actions cause the elements to become inactive in your workspace and thus no longer members of your default group.

The co command can overwrite modified files in the destination workspace that you have not yet kept. As a best practice, you may want to keep all (modified) elements before running this procedure.
See Also
The co command in the CLI User's Guide for additional options.


How To-Best Practice
Comment List