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

Re: Hook for enforcing lower case in file names

From: Martin Tomes <lists_at_tomes.org>
Date: 2004-10-13 17:35:45 CEST

Jan Normann Nielsen wrote:
> Hi
>
> I have a small Subversion repository for my own webserver contents.
> Since I'm testing my website from Windows and am hosting that and the
> Subversion repository from Linux, non-lower-cased file names on the
> website will eventually get me into trouble.
>
> Therefore I want a hook script for my Subversion repository that won't
> let me commit files that are not all lower-case. Has anyone got a clue
> on how to do that?

Take a look at:

contrib\hook-scripts\check-case-insensitive.pl

It rejects a commit if there is a case insensitive file name clash. You are interested in the bit
down to line 158 at which point you have a list of all the files being added. At that point you
would look for any with uppercase characters and reject the commit if you find any.

-- 
Martin Tomes
echo 'martin at tomes x org x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
The Subversion Wiki is at http://www.subversionary.org/
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Oct 13 17:36:22 2004

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.