[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-09 17:58:31 CEST

----- Original Message -----
From: "Garrett Rooney" <rooneg@electricjellyfish.net>

> >How can I filter committed files thru a code beautifier (like astyle)?
> what you could do is have a pre-commit hook that verifies that the code
> being checked in conforms to the style guidelines, and if it doesn't
> refuse to proceed with the commit. i don't know of anyone who's done
> this, but it shouldn't be that hard.

How can I send back the message "File doesn't comply to rule XYZ" to the

----- Original Message -----
From: "Ben Collins-Sussman" <sussman@collab.net>

> "Jean-Luc Wasmer" <jl.subversion@wasmer.ca> writes:
> > How can I filter committed files thru a code beautifier (like astyle)?
> I'm going to pretend for a moment that this idea doesn't make me
> cringe. :-)

Be careful... I might be subverting you with a _very bad_ idea :-)

----- Original Message -----
From: <pwd@mdtsoft.com>

> I have been thinking about this; my current design is to have a thing that
> will be kicked off by cron,

What about doing this in the post-commit hook.
There wouldn't be any pbms with the client since the revision number would
be incremented.


To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 9 17:58:27 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.