[Serdev] new commitlog scripts
Jan Janak
jan at iptel.org
Thu Jan 22 17:52:09 UTC 2004
This is a small overview of new commitlog scripts for the rest of the
CVS admins.
I've stolen CVS commitlog scripts from the FreeBSD repository (thanks to
Maxim for the info) and adapted them for our repository.
All the scripts are stored in CVSROOT, the following new files are
present in the directory:
cfg.pm -- Global configuration
cfg_local.pm -- Local configuration overriding the global file (make
your changes in this file)
commit_prep.pl -- Pre-commit checking script
commitcheck -- Pre-commit checking script
cvs_acls.pl -- Fine-grained access control
log_accum.pl -- Report generator
All the files have been added to checkoutlist list so that the cvs
repository treats them as administrative files (they are re-built on
every commit).
When you commit a change, commitinfo is executed prior to the commit,
which in turn executes commitcheck script. The script does the following:
- Check whether a proper cvs host is used (disabled)
- Performs additional checks (disabled)
- Checks the cvs version (disabled)
- Checks whether the commiter has proper permissions (disabled because
our commiters have write access to the whole repository)
- Executes commit_prep.pl which prepares some input for log_accum.pl
After the commit the cvs server executes loginfo which in turn executes
log_accum.pl file. This file generates the commitlog (also includes
links to viewcvs on berlios) and mails the result to this list.
The main configuration file is cfg.pm which contains some pre-set
default. This file is then overriden by cfg_local.pm which contains
settings specific for our repository.
Jan.
More information about the Serdev
mailing list