[postgis-devel] Another Styling Possibility?

Maxime van Noppen maxime at altribe.org
Mon Feb 22 06:05:20 PST 2010


On 02/22/2010 03:01 PM, Paul Ramsey wrote:
> I just read up on svn hooks, and it doesn't support hooks that alter
> the input, only ones that accept/reject the commit and have
> side-effects (like posting to a mail list or irc or whatever).
> 
> Jeff had a suggestion, which was to use a hudson process that, on each
> commit, runs astyle and commits any format changes. This would neatly
> separate code changes from format changes in the commits, which would
> be nice.

What about having a hook that rejects the commit if it is not correctly
formatted ? This would "force" the developers to remember to run 'make
astyle' before committing though it might be annoying.

-- 
Maxime



More information about the postgis-devel mailing list