This chapter provides an overview of the Version Controller's features and capabilities. For more detailed information on how to use this tool, choose Help: On Version Controller. You can print Help topics using the HyperHelp Viewer.
The FUSE Version Controller provides a graphical user interface for managing a source code library. The Version Controller supports many UNIX-based source control library utilities, such as ClearCase. The Code Manager is most suitable for an RCS or SCCS library because of its more functional user interface.
Figure Figure 21-1 shows the Version Controller main window.
Key elements are the major window panes running from the top to the bottom of the window:
Shows transactions and status of Version Controller operations.
Displays Quick Help on menu items when you press and hold MB1 on the item.
Use the Version Controller to:
Interface to many source control libraries that are not accessible to the Code Manager
Manage files within a library, including check in, check out, lock, insert new, and cancel lock
Review the transcript of a source code management session
Integrate with the editors and the Common Desktop Environment (CDE)
To use the Version Controller to maintain source code libraries, make sure of the following:
A source control utility is installed on the system on which you will run FUSE.
If you are using the Digital UNIX operating system, you can also install the RCS and SCCS control library utilities as options from the Digital UNIX software kit.
If you are checking files in, the source files for your program are available in your working directory.
You can start the Version Controller in several ways:
Use the command line.
If you have CDE installed, use the Version Controller icon.
Use the FUSE Control Panel once FUSE is running.
Use the Tools menu from most FUSE tools.
You can start the Version Controller from the command line using the following command:
% fusevc [-Xt-options] [-cwd] [library]
See Appendix Appendix D and the specific reference pages for the command syntax and options.
If the Control Panel is not running, it starts automatically as a minimized icon. If FUSE is already running, the Version Controller is placed in the current project.
When you have CDE installed, FUSE provides a FUSE application group icon and icons for the individual tools that make up the FUSE environment.
To invoke the Version Controller:
Double click on the Application Manager icon in the CDE Front Panel to display the application group icons.
Double click on the FUSE application group icon to display the icons in the FUSE application group.
Double click on the Version Controller icon to start the tool.
To start the Version Controller from the FUSE Control Panel, select Version Controller from the Tools menu in the Control Panel. FUSE first lists the tool in the Control Panel under the current project. Then the tool main window appears.
Like all tools, the Version Controller inherits its working directory from that set for the current project. See Section Section 21.4 for information on selecting a library.
Most FUSE tools have a Tools menu. To start a tool, select the tool from the Tools menu.
When the Version Controller starts, it looks for a library based on previously entered project information. If you haven't specified one, a dialog box appears to let you enter a library. You can bring this dialog box up from the Version Controller by choosing Commands: Set Library. You can save this library as part of the project data.
In addition to the requirements in Section Section 21.2, if you use the Version Controller with the ClearCase source control library, make sure of the following:
All ClearCase setup should be completed before entering FUSE using the command line. This includes the creation of versioned object bases (VOBs) and views.
If you plan to work within a single view, set the view and then start FUSE using the command line from the window where the view is set.
If you plan to work with multiple views during a single FUSE session, start FUSE from outside a view. This makes working with multiple views or changing view specifications easier.
If you start FUSE from outside a view, use extended
pathnames in the Set Library dialog box when configuring the Version
Controller.
(To access this box, click on Commands: Set Library...
.) You specify an extended pathname by appending the view location
(/view/view_name
) to the beginning of the full
pathname.
The following is an example:
/view/my_view/tmp_mnt/var/users/smith/file.c
When changing a view, just change the view location portion of the pathname in the Set Library dialog box.
The library and working directory in the Set Library dialog box should be identical.
FUSE incorporates EnCASE features that allow you to activate ClearCase, if it is installed on your system, directly from the FUSE environment. This lets you take advantage of direct communication between ClearCase and FUSE editors. You will also want to use the Version Controller rather than the Code Manager to fully exploit integration between ClearCase and FUSE.
To activate ClearCase:
Step | Action |
1 |
In the Control Panel, choose Modify Tools Menu... from the Tool menu. |
2 |
Click on ClearCase in the Inactive Tools column. |
3 |
Click on the Add button. You will also likely want to remove the Code Manager from the Active Tools column and add the Version Controller tool in the same way. |
4 |
From within FUSE, choose ClearCase from the File menu. |
You will be able to stop ClearCase from the Control Panel or from the ClearCase interface. If you save your project when ClearCase is running, it will restart when you open the project. The Open File menu item within the ClearCase interface will bring a file selected in the ClearCase interface into a FUSE editor automatically.
The Version Controller maintains a transcript of output from each Version Controller action (output from a previous action is erased). The transcript includes success and error information and output from library actions. Check the transcript after you execute a Version Controller operation to determine if the operation was successful.
Figure Figure 21-2 shows an example of the transcript for a checkin operation.
You can redefine the commands on the Commands menu if the default definitions are not sufficient for your purposes.
To redefine the Version Controller commands:
Step | Action |
1 |
Choose Commands: Setup from the Version Controller to display the Setup dialog box. |
2 |
In the Setup dialog box, click on the Define options menu and select the command you want to define. The Setup dialog box changes according to the command you choose. |
3 |
Complete the Setup dialog box by entering a command definition, specific to the source control library utility you are using, into each of the fields. For more information, see the online Help. |
Tables Table 21-1, Table 21-2, and Table 21-3 list the FUSE-supplied command definitions that you can modify.
Table Table 21-4 describes the variables that are used in these tables, along with some additional variables that the Version Controller supports for the command definitions.
Command | Command Definition |
Checkout (with a lock) |
|
Checkout (without a lock) |
|
Checkin (keep file) |
|
Checkin (remove file) |
|
Insert New |
|
Cancel Lock |
|
Lock |
|
Comment Option |
|
Revision Option |
|
Command | Command Definition |
Checkout (without a lock) |
|
Checkout (with a lock) |
|
Checkin (keep file) |
|
Checkin (remove file) |
|
Insert New |
|
Cancel Lock |
|
Lock |
|
Comment Option |
|
Revision Option |
|
Command | Command Definition |
Checkout (with a lock) |
|
Checkout (without a lock) |
|
Checkin (keep file) |
|
Checkin (remove file) |
|
Insert New |
|
Cancel Lock |
|
Lock |
Lock is not an SCCS command. |
Comment Option |
|
Revision Option |
|
Variable | Description |
$filename |
The name of the file being checked in, checked out, and so on. The full path or relative name can be specified. If multiple values are specified for this variable in the command dialog boxes, the command is executed multiple times (once for each value specified). |
$filelist |
The name of the file being checked in, checked out, and so on. The full path or relative name can be specified. If multiple values are specified for this variable in the command dialog box, the values are substituted as a list and executed as one command. |
$workdir |
Specified in the Set Library dialog box, this variable specifies where the command is to be executed. |
$library |
Specified in the Set Library dialog box, this variable specifies the location of the source control information. |
$options |
Optional command options that can be entered in the Options field in command dialog boxes. |
$comment_opt |
The syntax for the Comments option.
The definition of this variable usually includes the
|
$comment |
Optional comment text that can be entered in the Comments field in command dialog boxes. |
$rev_opt |
The syntax for the Revision option.
The
definition of this variable usually includes the
|
$revision |
Optional revision text that can be entered in the Revision field in command dialog boxes. The value for this variable can be a symbolic name. |
When you want to modify a file in the source control library, you should first check the file out of the library.
To check a file out of the library:
Step | Action |
1 |
Choose Commands: Checkout to display the Check Out File dialog box. |
2 |
In the Filename field, enter the file or files that you want to check out of the library. |
3 |
If the Comments field is available,
you can optionally enter a comment to be associated with the library
entry.
The comment applies to all the files listed in the Filename
field.
(The Comments field is available if either the
|
4 |
If the Options field is available, you
can optionally enter any command options to be used for this checkout
operation.
The options apply to all the files listed in the Filename
field.
(The Options field is available if the
|
5 |
If the Revision field is available, you can optionally enter the revision of the file you want to check out of the library. |
6 |
Click on the Lock toggle button to check the file out of the library with a lock. |
7 |
Click on OK to check the files out of the library. |
After you have modified a locked file that you checked out of the library, you should check it back in. This lets you track changes made to the file.
To check a file into the library:
Step | Action |
1 |
Choose Commands: Checkin to display the Check In File dialog box. |
2 |
If the Comments field is available,
you can optionally enter a comment to be associated with the library
entry.
The comment applies to all the files listed in the Filename
field.
(The Comments field is available if either the |
3 |
If the Options field is available, you
can optionally enter any command options to be used for this checkout
operation.
The options apply to all the files listed in the Filename
field.
(The Options field is available if the
|
4 |
Click on the Keep File toggle button to keep a copy of the file in your working directory. |
5 |
Click on OK to check the files into the library and remove the lock. |