You can visit the new project home of RepoGuard here.
Posted by Malte Legenhausen
Release 0.3 (2008/07/20)
We just released the minor enhancements version 0.3 of the SVNChecker, you can get it from the download section.
Added RejectTabs test, thanks to Adam Byrtek for the contribution. This check parses a given set of files (ignoring binary files) and rejects any file that contains leading tabs.
Release 0.2.1 (2008/07/15)
We just released the new bugfix version 0.2.1 of the SVNChecker, you can get it from the download section.
Fixed a bug in the pylint check that made the check pass although it failed.
Made the "Pylint.ConfigFile" configuration option optional, a default pylintrc will be used if you don't specify it.
Fixed a bug in the transaction module that returned an empty file when calling getFile(...) more than once on the same file.
Fixed a bug in the transaction module to avoid a deadlock when receiving big files.
Made the SVNChecker compatible with python 2.4.
SVNChecker is a framework for Subversion pre-commit and post-commit hook scripts.
The SVNChecker allows tightly integration Subversion into existing work and development environments and to perform a variety of checks of the committed source code. The major use cases are the integration of Subversion with issue and bug tracking systems and the check of source code against coding standards. But, the SVNChecker can be used for any other use case where a tight integration with the source code management is necessary.
SVNChecker is designed and developed as an open extensible framework. By writing appropriate plug-ins, it can be extended to almost any kind of "check" (for example, to check source code or to query external databases). This can be used to enforce a variety of regulations of the software development process. By developing "handler" plug-ins, the result of checks can be handled in almost all needed ways (for example, for sending emails, updating databases, or running any given external software).
For further information you may take a look at the documentation.
Available Checks and Handler
SVNChecker provides some freely available checks and handlers. They are included in the SVNChecker distribution.
Check access rights on files.
Tests, if a file with the same filename (ignoring the case) already exists in the repository.
Checkout files from the repository to file system locations.
Checks java files for coding style errors using Checkstyle.
Checks for svn:keywords on all added files in this commit.
Checks if a log message contains one or more valid ID of an Mantis issue. By default, the log message must contain a line with 'MANTIS ID <#>', where '<#>' is number of an issue ID that is set to status 'in_progress' and handled by the correct user.
Checks Python files for coding style using Pylint.
Reject files with given extensions that include leading tabs. Contributed by Adam Byrtek.
Tests, if a unit test exists for a given Java class.
Checks XML files for correctness.
Simply print the message to the console. Either to stdout or to stderr.
Log the message into a file.
Send the message as email.
Append the message to one or more Mantis issues as note and update the SVNRevision field.
The SVNChecker is developed mainly by the Simulation and Software Technology divison of the German Aerospace Center (DLR). We are happy about any support for this project. For example, you might participate as a developer, bug reporter or simply by telling us your needs. Especially, if you have written additional checks or output handler, we would be happy to include them into the SVNChecker distribution.