[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: Beautify code thru a hook

From: Daniel Patterson <danpat_at_adaptiveinternational.com>
Date: 2003-05-11 05:43:39 CEST

On Sat, 2003-05-10 at 02:05, Ben Collins-Sussman wrote:
> "Jean-Luc Wasmer" <jl.subversion@wasmer.ca> writes:
> > How can I send back the message "File doesn't comply to rule XYZ" to the
> > client?
> Make your pre-commit hook return exit code 1. I don't remember if you
> can throw a specific error-message back, though.

Based on behaviour (and not on the code), both the svn command line
client, and TortoiseSVN both display anything printed to STDOUT by
the post-commit hook.

We use this here to run Java code through "checkstyle" before allowing
commits. Providing a quick "make check" in the project Makefile
means that people don't even complain about it too much.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun May 11 05:45:28 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.