7.1 Introduction
OCamlCVS is a graphical front end for the CVS configuration management
utility. It displays the file and directories handled by CVS and
offers CVS functionalities through menus.
OCamlCVS can also show differences between two revisions, and a
merge assistant can be used to resolve conflicts.
OCamlCVS comes with a library which can be used to manipulate
CVS handled files in other applications, like it is in Cameleon.
You launch OCamlCVS with the following command:
ocamlcvs [dir1] [dir2] ...
Every directory you give on the command line will be a root
of the directory tree, on the left part of the main window.
If you do not give any directory, the current working directory
will be the only root.
When ocamlcvs is launched, the main window appears,
with the directory tree on the left, and the file view
on the right. The file view shows the files handled by CVS
in the selected directory.
The CVS menu offers commands to perform on the
selected directory or the selected files.
These commands are also available throught contextual menus,
when you click with the right button on a directory or a file.
The files in the file view are displayed in different colors,
according to their state (Up-to-date, Locally modified, ...).
You can customize the CVS commands that OCamlCVS launches,
through your ~/.ocamlcvsrc file. Each line of this file
must have the following syntax:
<command>:<options>
For example, to make OCamlCVS pass options
to the cvs update command, use the following line:
update :-d -P -A
The commands which can be parametrized are
add, commit, remove, status, update.
Please note that you should not use options which modify the output
of the CVS command, since this output is parsed by OCamlCVS.
Note: By default, the update command is used with the -d option,
and the status command is always used with the -l option.
7.3 The Ocamlcvs library
Here is the interface of the Ocamlcvs library.