[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: Branko Čibej <brane_at_xbc.nu>
Date: 2004-06-01 15:38:52 CEST

Martin Tomes wrote:

> Branko Čibej wrote:
>
>> Jeff Lanzarotta wrote:
>>
>>> Hello,
>>>
>>> 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.

Oh bother. You're right.

>> 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).
>
> * This prevented someone on a case-insensitive system from checking
>
> 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.

In this case, I think a hook script is exactly the right way to go. Of
course the fact that it has to support Unicode case folding isn't going
to help a bit.

-- 
Brane Čibej   <brane_at_xbc.nu>   http://www.xbc.nu/brane/
---------------------------------------------------------------------
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:38:25 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.