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

Re: Change of file case confuses svn status on case insensitive file systems

From: Barry Scott <barry_at_barrys-emacs.org>
Date: 2007-04-28 13:04:04 CEST

On Apr 26, 2007, at 00:52, Karl Fogel wrote:

> Barry Scott <barry@barrys-emacs.org> writes:
>> On Apr 22, 2007, at 14:53, Barry Scott wrote:
>>
>>> My pysvn WorkBench Windows users want a workaround for a problem
>>> that I'd assume should be solved in svn. The problem affects any WC
>>> that
>>> is checked out on a file system that is case insensitive, e.g.
>>> Windows and
>>> Macintosh default file systems. I understand that TSVN has already
>>> added
>>> code to work around this problem.
>>>
>>> Here is a transcript showing the problem on the Mac:
>>>
>>> $ svn --version
>>> svn, version 1.4.3 (r23084)
>>> compiled Jan 27 2007, 14:00:57
>>> ...
>>> $ svn st -v
>>> 1461 1435 barry .
>>> 1461 1435 barry 2.txt
>>> 1461 1435 barry 13.txt
>>>
>>> $ rm 2.txt
>>> $ echo NEW TXT >2.TXT
>>> $ svn st -v
>>> ? 2.TXT
>>> 1461 1435 barry .
>>> ! 1461 1435 barry 2.txt
>>> 1461 1435 barry 13.txt
>>> $ cat 2.txt
>>> NEW TXT
>>> $
>>>
>>> As you can see the OS can find 2.txt but subversion thinks it
>>> missing and
>>> that there is a new unversion file 2.TXT.
>>>
>>> Its common for MS Visual Studio to change the case of files
>>> apparently that
>>> has raised this issue.
>>>
>>> From reading the issue tracker I found these two issues that and
>>> case
>>> of file isuues but not this problem.
>>>
>>> 1854 - loss of data is case of file changed
>>> 1495 - two file in repos differ by case only
>>>
>>> Can I file a issue for this problem or does one I missed already
>>> exist?
>>
>> I was hoping for some feedback for this problem.
>>
>> I am following the rules arn't I ask here before filling an issue?
>
> You are, and thank you for that!
>
> So, have you also looked at these two issues:
>
> http://subversion.tigris.org/issues/show_bug.cgi?id=667
> http://subversion.tigris.org/issues/show_bug.cgi?id=2010
>

2010 is different problem. Two files in the repos map to one on the
disk.

> ? I think it's possible that the bug you're seeing is a duplicate of
> one of them... in fact, I think it is quite likely to be another
> symptom of issue #667. If you could take a look at that issue in
> detail, that would be great.
>

667 is talking about the same issue.

> If you think it is a dup, go ahead and add a comment to the issue,
> linking to your original mail in the archives (to save you time:
> http://subversion.tigris.org/servlets/ReadMsg?list=dev&msgNo=126488).
>

Done and I also change the summary to:
"handle file name case sensitivity edge cases"
so help others find this issue.

> If you have time to analyze the code and come up with a patch, that
> would be even better, of course, but no problem if you can't.
>

My guess is that this is not going to be easy to fix and will take a lot
of research and time to get a patch together because of the assumption
in the code that file systems are case sensitive. If my guess is wrong
on the scale of the problem I might (no promisies) be able to take a
look.

Mean while I'll merge a patch to pysvn workbench to work around the
issue.

Barry

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Apr 28 13:04:45 2007

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.