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

Move problem with Win Filesystem

From: Michael Gaehwiler <Michael.Gaehwiler_at_griesser.ch>
Date: 2004-08-27 10:45:22 CEST

hi

the renaming of files to only change capitals does not
work on windows filesystem. example:

create file 'Hello.TXT' (e.g. copied from DOS filesystem)
svn add Hello.TXT
svn move Hello.TXT hello.txt
svn: Cannot move path 'Hello.TXT' into itself

the only workaround i know is to rename the file in
the remote repository and then checkout the hole
repository again into a new directory.

also if the file is renamed in the dos box with the ren
command from Hello.TXT to hello.txt there is no
success (see snippet below).

i think subversion recognizes the difference between the files
but does not handles the specialities of the windows filesystem.
that means operations in the db recognize the difference but
the filesystem operations doesn't.

to solve this problem the file could firstly be moved to the .svn
folder (or copied, but performance could be bad), then if copied
deleted and lastly moved from the .svn folder back with the
correct name.

so my question is: could somebody resolve this problem?

i don't know if this ever was an issue on the list. i didn't
find anything about it.

thanks in advance
  michael

<snip>
C:\Tests\TestCheckout>dir
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 0038-2397

 Verzeichnis von C:\Tests\TestCheckout

27.08.2004 10:27 <DIR> .
27.08.2004 10:27 <DIR> ..
27.08.2004 10:27 0 Hello.TXT
               1 Datei(en) 0 Bytes
               2 Verzeichnis(se), 35'838'455'808 Bytes frei

C:\Tests\TestCheckout>ren Hello.TXT Hello.txt

C:\Tests\TestCheckout>dir
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 0038-2397

 Verzeichnis von C:\Tests\TestCheckout

27.08.2004 10:28 <DIR> .
27.08.2004 10:28 <DIR> ..
27.08.2004 10:27 0 Hello.txt
               1 Datei(en) 0 Bytes
               2 Verzeichnis(se), 35'838'455'808 Bytes frei

C:\Tests\TestCheckout>svn --verbose status
? Hello.txt
                2 2 gami .
                3 3 gami Hello.TXT

C:\Tests\TestCheckout>svn commit -m "Hello changed"

C:\Tests\TestCheckout>svn update
At revision 3.

C:\Tests\TestCheckout>dir
 Volume in Laufwerk C: hat keine Bezeichnung.
 Volumeseriennummer: 0038-2397

 Verzeichnis von C:\Tests\TestCheckout

27.08.2004 10:28 <DIR> .
27.08.2004 10:28 <DIR> ..
27.08.2004 10:27 0 Hello.txt
               1 Datei(en) 0 Bytes
               2 Verzeichnis(se), 35'838'451'712 Bytes frei

C:\Tests\TestCheckout>svn --verbose status
? Hello.txt
                3 3 gami .
                3 3 gami Hello.TXT

C:\Tests\TestCheckout>
</snip>

--
Michael Gähwiler
Griesser Electronic AG
Aegertweg 7
CH-8305 Dietlikon
Tel:    +41 44 805 70 11
Direkt: +41 44 805 70 33
Fax:    +41 44 805 70 15
mailto:michael.gaehwiler@griesser.ch
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Aug 27 10:47:05 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.