On 6/6/02 1:16 AM, "Bill Tutt" <email@example.com> wrote:
>> From: Karl Fogel [mailto:firstname.lastname@example.org]
>>> - Case SeNsitiVity
>> I see the problem, but I'm not sure where to start on solutions.
>> Should the client just force downcase all paths on Windows?
> No, that's wrong. Windows (and Mac OS 9, dunno about the new Darwin
> stuff, Fitz can comment) file systems are case insensitive but case
With Mac OS X/Darwin it is a function of the file system in use, not the OS.
The default file system on these systems is HFS+. This is case insensitive
but case preserving.
I managed to reproduce Jay's problem on Mac OS X and added the recipe to
>> clearly not enough to depend on APR-under-Windows being properly case
>> insensitive -- APR does fine, but we still have the original-case
>> path, and we're storing it that way in Berkeley DB.
>> Ick. Maybe there's some nice trick I'm not thinking of?
> Personally, I think people who get too upset about case sensitivity are
> the people who need to be using GUI front ends to source code management
I don't think the client/UI has much to do with it. If I have a file
"myfile" and I want to change it to "myFile" I'd do the equivalent of "svn
mv myfile myFile" whatever the UI. This currently fails. See issue 667.
> Besides, cmd.exe has tab completion, use that for specifying files. It's
> not like we're going to make URLs on the server case-insensitive or
I don't think you want the server to worry about this. But I think this is
an issue for the working copy library, not just the client.
Here are my first thoughts on a solution.
- The case in the repository is canonical. When looking for a file in the
wc, the client resolves the file and then checks its case (no idea how to do
this right across various platforms). If the case is wrong then the working
$ svnadmin create test
$ svn co file://PathTo./test -d repos
Checked out revision 0.
$ cd repos
$ touch myFile
$ svn add myfile
leads to an error - the files cases don't match.
$ svn add myFile
$ svn commit -m ""
$ mv myFile myfile
$ svn up
leads to an error - obstructed update. myfile exists when trying to
Note that issue 667 still needs to be fixed - you need to be able to use
"svn mv" to change the case of a file.
This might still have problems in two situations:
- There are two files in a directory in the repository that only differ in
case. It is not possible to store such a pair of files in a single dir on
Mac OS X. I think that svn should error on checkout/update explaining the
situation. A client could be written to detect the error and ask the user
to "svn mv URL" one of the files to resolve the conflict.
- The filesystem is not even case preserving. In this case I think you
need to tell svn and have it ignore case. Maybe a client option to convert
all files to a single case. This would still have to error if there were
multiple files in a single dir differing only in case.
What do people think?
To unsubscribe, e-mail: email@example.com
For additional commands, e-mail: firstname.lastname@example.org
Received on Thu Jun 6 18:09:11 2002