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

Re: Case-insensitivity causes data loss under win32

From: solo turn <soloturn99_at_yahoo.com>
Date: 2003-10-07 20:45:13 CEST

copy a file over another file with an equivalent name gives a "overwrite warning" in explorer. is
there an exception thrown that subversion could use to detect such a thing?

create a file "New.txt", and try to copy a file "new.txt" over it. the warning is "new.txt already
exists, do you want to overwrite it".

----------------------------------------------------------
Date: Tue, 07 Oct 2003 11:21:44 +0200
From: Tristan Seligmann <tristan@quotemaster.co.za>
Content-Type: text/plain; charset=us-ascii; format=flowed
Subject: Case-insensitivity causes data loss under win32

Subversion (correctly) does not consider 'FILENAME' to be equivalent to
'filename', even under win32 where they are equivalent on the
filesystem. The problem is: if you rename (local rename, not svn rename)
a working copy of a file 'filename' to 'FILENAME', and then do svn
update, 'FILENAME' will be "silently" overwritten with the clean copy of
'filename'. For example:

---
 >svn status xcom.prg
 >echo blah > xcom.prg
 >svn status xcom.prg
M      xcom.prg
 >move xcom.prg XCOM.PRG
 >svn update
Restored xcom.prg
At revision 1933.
 >svn status xcom.prg
---
Would it be possible for some kind of warning to be displayed under 
these circumstances, to avoid the data loss? (The reason the filenames 
are changing case is that they're being edited with DOS apps...)
Also, can anyone suggest a workaround other than renaming every file in 
the repository to uppercase?
Tristan Seligmann
__________________________________
Do you Yahoo!?
The New Yahoo! Shopping - with improved product search
http://shopping.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Oct 7 20:46:12 2003

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.