You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Amir Kolsky <am...@xpandsoft.com> on 2004/07/24 13:48:57 UTC

Major case sensitivity problem

What do you recommend we do if we need to change the case of a file's name?
 
E.g., we need to change ABC.cs to Abc.cs.
 
This runs havoc with the system:
1. it can't be done directly - we need to change the file's name to xAbc.cs,
commit and then change it to Abc.cs (ABC.cs --> xAbc.cs --> Abc.cs) and we
do this with Toirtoise rename, cause if we happen to do it with the file
system's rename we're hosed. In one scenario we got both ABC.cs and Abc.cs
in svn and it was a bear to get rid of the duplicate.
2. If someone has the ABC.cs in their working copy with changes, these can't
be merged into the file although theoretically we should be able to as the
file ABC.cs or xAbc.cs or Abc.cs is the same file... We need to go through
major hoops to get this working, usually involving erasing the working copy
and checking out everything again. What are we doing wrong?
 
This is a major issue for us and the team is so frustrated that we are
considering throwing SVN away and reverting to an older version management
system.
 
 Amir Kolsky
XP& Software

Re: Major case sensitivity problem

Posted by Martin Tomes <li...@tomes.org>.
Amir Kolsky wrote:
> What do you recommend we do if we need to change the case of a file's name?
>  
> E.g., we need to change ABC.cs to Abc.cs.
> 
 > In one scenario we got both ABC.cs and Abc.cs
> in svn and it was a bear to get rid of the duplicate.

You can prevent two confilicting names getting into the repository by 
using his pre-commit hook script:

http://svn.collab.net/repos/svn/trunk/contrib/hook-scripts/check-case-insensitive.pl

I think (based on the thread you had going on the TortoiseSVN list) that 
  you are looking for better support for case insensitive file systems 
and I am with you on that.  The Subversion client does need to become 
case insensitive on windows.  I don't believe any changes are needed to 
the server - the script mentioned above prevents case conflicts at the 
server end with no change to the server code at all.  Having said that, 
I don't believe it is trivial to do.

Martin.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org