[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 14:58:47 CEST

Jeff Lanzarotta wrote:

>Hello,
>
>I have the subversion server (svnserve) setup on a linux machine and our clients run on Windows 2000.
>
>A problem occurred when I was checking out one of our repositories to a new directory. I received the following error: 'Object of the same name already exists.'
>
>What I found out was that I had inadvertently checked in the same file under two different names. The first file name was DELETE.ICO and the second file was delete.ico. DELETE.ICO was checked in under revision 2 and delete.ico was under revision 4. Naturally under Linux, this represents two unique files but under Windows it doesn't.
>
>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
    * This prevented someone on a case-insensitive system from checking
      out the tree.

There's no real solution for the first issue, unless we introduce the
notion of a "case-insensitive" repository and forced some kind of
case-insensitive behaviour in all working copies. That's a huge change
and won't happen any time soon, if ever.

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).

>Thoughts and ideas?
>
>
You can solve this by removing or renaming one of the two fines directly
in the repository; e.g.,

    svn rm svn://server/path/to/DELETE.ICO

will do the right thing regardless of case-sensitivity on the client.

-- 
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 14:58:07 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.