This section gives an overview of the most common SCCS sessions using Versioning. It assumes that you are familiar with SCCS. The following scenarios are covered:
An initial session where files are not yet under SCCS control
A session where the project is already under SCCS control
There may be instances where a project is under development before a source code control system is put in place. This scenario assumes a project is already under way and the hierarchy of the project is established. It is assumed that the project is ready to be put under SCCS control.
To put a project under SCCS control:
Start Versioning in one of the following three ways:
Type twversion at a shell command prompt, with or without a path name, followed by the ampersand symbol (&). For example:
demo% twversion & |
demo% twversion dirname & |
Choose TeamWare > Versioning in the Configuring window.
Double-click on a workspace icon in the Configuring window.
Double click the project directory in the Versioning main window.
Versioning automatically changes to the selected directory. As there are no files yet under SCCS control, the display shows only directories.
Choose Commands > Check In New.
The Check In New Files window displays a list of files not under SCCS control.
Select the files you want to put under SCCS control and add necessary comments in the Initial Comment pane.
Click OK button to check in the selected files.
Once the files are under SCCS control, they will be transferred to the display in the main window.
Repeat this scenario in as many project directories as necessary. Then proceed to the scenario in "Working with a Project Under SCCS Control"" for working with files under SCCS control.
Once a project is under SCCS control, you can use Versioning to perform SCCS functions. This section provides a scenario of basic SCCS tasks and how they might be applied on a project. These steps are simplified to give an overview of the process. The remaining sections of this chapter cover in-depth instructions on performing tasks.
This is representative of a hypothetical session. The steps will vary according to project needs and the tasks required to fulfill them.
Start Versioning and select the working directory.
Choose Commands > Check Out or Commands > Check Out and Edit to check out a file.
Choose File > File History to display the history graph of the file.
Select two deltas from the graph in the History window and choose View > Diff in Merging Window or View > Diff in Text Window to inspect the differences.
Make changes to the file.
Add necessary comments.
Choose Commands > Check in to check the file in.
These steps can be repeated and varied as required by the needs of your project. The following sections of this chapter provide in-depth information on how to perform these, and other, SCCS functions with Versioning.