[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: Jean-Luc Wasmer <jl.subversion_at_wasmer.ca>
Date: 2003-05-23 19:54:31 CEST

> > > How can I send back the message "File doesn't comply to rule XYZ" to
> > > 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.

Would you mind sharing your hook?



To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 23 19:48:57 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.