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

Re: Renaming files on win32

From: Gili <junk_at_bbs.darktech.org>
Date: 2004-12-21 22:35:04 CET

On Tue, 21 Dec 2004 15:27:26 -0600, Steve Greenland wrote:

>On Tue, Dec 21, 2004 at 08:37:56PM +0100, Norbert Unterberg wrote:
>> Windows does preserve filenames quite well. On windows, a file named
>> "Test" will keep its name with an uppercase T at the beginning, and a
>> file "test" would keep the lowercase "t". The difference between windows
>> and *nix is this that windows does not distinguish between these two
>> when comparing file names. If you open "Test" then windows will happily
>> open "test" if found in the correct directory. So you can not have
>> "test" and "Test" side by side in the same directory.
>
>Unfortunately, there are quite a few windows tools[1] that will break
>this, so that if you do
>
> <create Test.txt>
> fooedit test.txt
> <edit file in foo appropriate manner, and then save>
>
>you end up with "test.txt". Presumably this is because fooedit never
>checked to see what the filename actually was, and just overwrote the
>existing name. Sure, this is a bug in fooedit, but, in the Windows
>world, it seems to be widely spread, including a quite a few of MS's own
>products. (It's been a while, but VS seemed to have a problem with this.
>Of course, it was relatively minor in the long list of VS problems.)
>
>I think this is why a lot of Unixy people detest so called
>"case-preserving" file systems, because while it mostly works, it's not
>reliable: that is, the *filesystem* might be reliable, but the tools
>around it aren't. And to the end user, it appears that files are being
>renamed. I suspect this is not a problem in the MacOS world because one
>so rarely typed a file name except when explicily (re-)naming.

Steve,

        Two points:

1) I haven't experienced the problem you described in a couple of
years. All the tools I happen to use don't exibit such a problem. Maybe
recent exposure of the Windows world to the Unix world has lead to
developers fixing their editors. <shrug>

2) This problem shouldn't affect Subversion if fixed correctly. If
Subversion were to know that "Abc" is equivilent to "abc" under Windows
then ideally you would retain the filename casing as *originally*
stored in the server, unless the user explicitly invoked svn rename to
change the casing. See what I mean? I don't think such behavior would
cause any problems even if you were to use busted ass editors :) hehe

Gili

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Dec 21 22:38:03 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.