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

1.7 corrupts WC when reverting add of changelist member

From: Stein Somers <ssomers_at_opnet.com>
Date: Tue, 09 Aug 2011 21:53:37 +0200

When you revert an addition in your working copy, and the item appeared in a
changelist, the working copy becomes corrupt and you can't ever use the filename
again. I built a maintainer mode version from /branches/1.7.x_at_1155504 which
balks (after a boring stack trace):

        svn: E155016: Corrupt data for '...../sandbox/wc/x'

at the end of this test script:

#!/bin/bash
alias svn=$PWD/../subversion/subversion/svn/svn
alias svnadmin=$PWD/../subversion/subversion/svnadmin/svnadmin

rm -rf sandbox
mkdir sandbox
set -eux
cd sandbox
svnadmin create repo1
url=file:///$PWD/repo1/trunk
svn mkdir -m boot "$url"
svn co "$url" wc
cd wc
# Need at least one versioned file, otherwise there's no problem
echo first >first
svn add first
svn commit -m blah
svn up
# Try to add a file x, in an uncertain state of mind
echo x >x
svn add x
svn cl c x
svn revert x
svn add x

-- 
Stein
Received on 2011-08-09 21:54:09 CEST

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.