views:

35

answers:

1

Not everyone I work with has subversion configured the same way. Every once in a while I have to make sure that all source files have the proper eol-style and keyword expansion set. It would be much easier if I could just fail the build if someone commits code without configuring subversion properly. Is that possible?

EDIT

The build uses maven kicked off from TeamCity, but I'm willing to set up a new build to make this happen.

+1  A: 

I would recommend that you set up a pre-commit hook script on your server, so that commits which don't have the keywords or properties set get rejected and the user has to fix that.

There are example hook scripts available for this here: http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/

the 'svn-keyword-check.pl' and 'pre-commit-check.py' are the ones you should look at.

Stefan