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

Re: Filename case

From: Martin Tomes <lists_at_tomes.org.uk>
Date: 2004-06-01 15:16:47 CEST

Branko Čibej wrote:
> Jeff Lanzarotta wrote:
>>I have the subversion server (svnserve) setup on a linux machine and our clients run on Windows 2000.
>>My question is, is there a way to protect against this? In this scenario, the files DELETE.ICO and delete.ico are actually the same file.
> What exactly would you like to protect against? I see two issues here:
> * Someone on a case-sensitive system checked in two files that
> differ only in case

Not necessarily, if two people on Windows each add a file, one called delete.ico and the other
DELETE.ICO and both commit then one can end up in the position described.

> * This prevented someone on a case-insensitive system from checking
> out the tree.
> As for the second issue, there's really not much to do once the damage
> is done in the repo (apart from making the error message nicer, of course).

I have a hook script on our CVS server which prevents this from happening, when the second person
tries to commit the new file it is found to already exist with a different case and the commit is
rejected. My next challenge is to write a pre commit hook script which does the same.

Martin Tomes
echo 'Martin x Tomes at controls x eurotherm x co x uk'\
  | sed -e 's/ x /\./g' -e 's/ at /@/'
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Jun 1 15:52:44 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.