Am 24.09.2012 10:52, schrieb Cooke, Mark:
-----Original Message----- From: Ryan Schmidt
Subversion can't really know if you care about Windows
compatibility. Many people don't.

What you can do though, if you care about Windows compatibility, is
to write a pre-commit hook script that prevents the addition of
files with those names. It won't alert you when you "svn add", but
it will prevent the "svn commit".

That sounds like something someone may already have done and I'm
always interested in good hook script examples for windoze, anyone?

There is already a script [1] that makes sure that filenames not only differ in case, which is another thing MS Windows doesn't handle too well. It looks reasonably well written and could easily be cloned or extended to check for reserved filenames. The same directory contains other hook scripts written in Perl or for the POSIX shell.


Uli


[1] http://svn.apache.org/repos/asf/subversion/trunk/contrib/hook-scripts/case-insensitive.py
**************************************************************************************
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