Home > svnchecker

svnchecker

Svnchecker is a project mainly written in Python, it's free.

Quick wrapper round svn that will run django tests before commit

SVNCHECKER

This is a simple script that will catch an svn commit, and run a command, such as tests.

Installation

Add this part to your buildout::

[svnchecker] recipe = zc.recipe.egg eggs = svnchecker initialization = args = {'bin': '${buildout:bin-directory}', 'command': 'django', 'apps': ['main'], }
arguments = args

where bin is the directory containing the command you want to run, command is the command you'd like to run and apps is a list of arguments (called apps as it's a django heritage).

Usage

The usage is fairly simple, simple run bin\\svn rather than svn. If it's a commit or ci command, it will execute the command you specified, after a short delay in case of accidental commit. Any other command is passed directly through to the SVN binary.

Bash Helper

This is a (simple) bash helper that can do in a .bashrc::

function svn_func() { if [ -f bin/svn ] then bin/svn $@ else svn $@ fi
} alias svn=svn_func

Previous:testAgain