CvsGraph(1) | CVS/RCS Utilities | CvsGraph(1) |
cvsgraph - A CVS/RCS repository grapher
cvsgraph [options] [file]
CvsGraph generates images and image maps from CVS/RCS repository files.
CvsGraph starts with reading a configuration file. If the
'-c' option is given on the command line, then it is read. Otherwise,
cvsgraph first looks for a configuration file in the current
directory using ./cvsgraph.conf and, if not found, tries to open
/etc/cvsgraph/cvsgraph.conf. Defaults and command line overrides will
be used if no configuration file can be opened. The format of the
configuration file is described in cvsgraph.conf(5). Configuration
parameters entered on the command line have always precedence over the
configuration file. Configuration options are processed in the following
order:
- configuration file
- '-O' command line options
- other command line overrides (-bkMmrSsu)
If you do not want to process any configuration file, then you can set option
´-c /dev/null', which will read an empty configuration
file.
The location of a repository file is determined by the
configuration parameters cvsroot and cvsmodule and the
respective command line options '-r' and '-m'. The
cvsroot, cvsmodule and file are concatenated with
separating '/' path-separators forming the final location:
<cvsroot>/<cvsmodule>/file
No path-separator is appended if cvsroot and cvsmodule are empty
strings. An error message is issued if the resulting path cannot be opened.
Note that cvsgraph does not attempt to check any validity of the path
components. This enables a user to open any file on the file-system by
setting cvsroot and cvsmodule to empty strings.
For example, cvsgraph -r '' -m '' ../myfile,v would try to open the
file ../myfile,v. Note that a variety of possibilities yield the same
file and all have their advantages and drawbacks, which are mostly related
to the possible use of the parameters in text expansions.
If no file is given on the command line, then input is read from standard input. This can make expansion strings somewhat strange looking, but they are composed with the information available. If no input file was given, then the input filename for expansion is set to <stdin>.
The output generated by cvsgraph can be either an image
(default) or and HTML image map ('-i' and '-I' options).
Images can have several formats, depending on the capabilities of the gd
library on which the drawing is built. The configuration allows for GIF, PNG
or JPEG type images. Some recent versions of gd do no longer support GIF and
PNG will be used instead. GIF support in gd was added again after the lzw
patent expired.
Generation of image maps conforms to the HTML standard and maps rectangular
regions of the image where revisions and branches are drawn. Additionally,
an extra rectangular region is generated between revisions to support diff
generation.
CvsGraph is written and maintained by B. Stultiens.
Send comments and bug reports to cvsgraph@akhphd.au.dk (read the
mailnote in the README file first) and visit the homepage at:
http://www.akhphd.au.dk/~bertho/cvsgraph/.
1.7.0 | B. Stultiens |