[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: SVN and PRN and CON files on Windows platform

From: Ulrich Eckhardt <ulrich.eckhardt_at_dominolaser.com>
Date: Mon, 24 Sep 2012 11:46:10 +0200

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.
**************************************************************************************
Received on 2012-09-24 11:47:00 CEST

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.