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

Possible wc corruption

From: Nicklas Norling <nicklas.norling_at_ifsab.se>
Date: 2004-06-21 15:41:50 CEST

Hi.
 
I just ran across a problem while testing the case sensitivity script
contributed to
svn on trunk recently.
 
I'm running:
C:\CodeModules\Flarp\NinoTest>svn --version
svn, version 1.0.4 (r9844)
   compiled May 22 2004, 02:36:50
 
On the client and teh same verison on the server.
 
Steps to recreate:
 
Check out a WC that has a file named "Second.txt" to the path
C:\CodeModules\Flarp\NinoTest.
 
C:\CodeModules\Flarp\NinoTest>svn rm Second.txt
D Second.txt
 
C:\CodeModules\Flarp\NinoTest>echo test > second.txt
 
C:\CodeModules\Flarp\NinoTest>svn add second.txt
A second.txt
 
C:\CodeModules\Flarp\NinoTest>svn ci second.txt -m "New file second.txt with
correct case"
Adding second.txt
Transmitting file data .svn: Commit failed (details follow):
svn: MERGE request failed on '/svn/k2/NinoTest/trunk'
svn:
'pre-commit' hook failed with error output:
 
File name case conflict found:
 
  NinoTest/trunk/second.txt already exists as Second.txt
 
 
C:\CodeModules\Flarp\NinoTest>svn -R revert .
Reverted 'Second.txt'
Reverted 'second.txt'
 
C:\CodeModules\Flarp\NinoTest>echo test >> Second.txt
 
C:\CodeModules\Flarp\NinoTest>svn ci Second.txt -m "Added some text"
Sending Second.txt
Transmitting file data .svn: Commit failed (details follow):
svn: Can't open file
'C:/CodeModules/Flarp/NinoTest/.svn/text-base/Second.txt.svn-base': The
system
cannot find the file specified.
 
C:\CodeModules\Flarp\NinoTest>svn -R revert .
svn: Error 'restoring text' for 'Second.txt'
svn: Can't copy '.svn/text-base/Second.txt.svn-base' to 'Second.txt.tmp':
The system cannot find the
 file specified.
 
Here a zero byte file named Second.txt.tmp appears next to the modified
file.
 
C:\CodeModules\Flarp\NinoTest>svn status
M Second.txt

After this I am unable to rectify the WC without checking it out again.
Clean up and update doesn't
have any effect. the text-base appears to have been irrecoverably lost in
the tmp/text-base directory.
 
/Nicke
Received on Tue Jun 22 23:42:09 2004

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.