Am 04.11.2011 01:48, schrieb michael mac:
There's a requirement to enforce file naming convention under
particular svn paths. The convention name will be "numeric dot
number" (1.1). I have looked into svnperm.py and
commit-access-control.pl as a pre-commit hook option, but they don't
seem to have the ability to fill this requirement.

There is a script that is used for MS Windows environments that assures that files don't only differ by their name, I'd take a look at that for a starting point (or any other pre-commit hook script in the scripting language of your preference).

Concerning the "particular svn paths", I'd just set a property (like "svn propset yourcompany:enforce-dotted-name") on the parent directory and run the validation if the property is there.

Uli
**************************************************************************************
Domino Laser GmbH, Fangdieckstraße 75a, 22547 Hamburg, Deutschland
Geschäftsführer: Thorsten Föcking, Amtsgericht Hamburg HR B62 932
**************************************************************************************
Visit our website at http://www.dominolaser.com
**************************************************************************************
Diese E-Mail einschließlich sämtlicher Anhänge ist nur für den Adressaten 
bestimmt und kann vertrauliche Informationen enthalten. Bitte benachrichtigen 
Sie den Absender umgehend, falls Sie nicht der beabsichtigte Empfänger sein 
sollten. Die E-Mail ist in diesem Fall zu löschen und darf weder gelesen, 
weitergeleitet, veröffentlicht oder anderweitig benutzt werden.
E-Mails können durch Dritte gelesen werden und Viren sowie nichtautorisierte 
Änderungen enthalten. Domino Laser GmbH ist für diese Folgen nicht 
verantwortlich.
**************************************************************************************

Reply via email to