AW: Adding license text to files
From: Markus Schaber <m.schaber_at_3s-software.com>
Date: Thu, 11 Aug 2011 08:15:28 +0200
Jason Aubrey [mailto:aubreyja_at_gmail.com]
All you can do from subversion itself is to create a pre-commit hook which refuses commits which don't have that license in place. You then can write a tool or script which users run on the working copies before committing. (Some clients like TortoiseSVN provide client-side pre-commit hooks, so you can automate this step.)
Another solution would be a cron job (or windows task planner) which checks out the HEAD, fixes all files, and commits them back to the repository. This approach is less intrusive, but the revisions without license will be available in the repository.
Mit freundlichen Grüßen
3S-Smart Software Solutions GmbH
Geschäftsführer: Dipl.Inf. Dieter Hess, Dipl.Inf. Manfred Werner | Handelsregister: Kempten HRB 6186 | USt-IDNr.: DE 167014915
This is an archived mail posted to the Subversion Users mailing list.