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

working copy broken after failed update

From: Eric <crc1021_at_myrealbox.com>
Date: Tue, 03 Jun 2008 10:17:27 -0500

This is probably the same or related to issue 2355.
http://subversion.tigris.org/issues/show_bug.cgi?id=2355

When doing an update where multiple files are being updated and one of the latter files fails to update, the working copy is left in a broken state where cleanup will not work.

This happens whenever a file is exclusively locked in the working copy. This can happen in windows frequently.

Below are the lines from a windows bat file that will reproduce the issue.

Eric

----cut-----
@echo off
rmdir /S /Q \temp\repo
rmdir /S /Q \temp\wc

mkdir \temp\repo
svnadmin create \temp\repo
mkdir \temp\wc
svn co file:///temp/repo /temp/wc

rem create a couple revisions using exes
rem because when they run Windows locks the files
cd \temp\wc
copy C:\WINDOWS\system32\notepad.EXE file1.exe
copy C:\WINDOWS\system32\notepad.EXE file2.exe
svn add file1.exe file2.exe
svn commit -m "this is rev 1"

rem just make any change for rev 2
echo "a change" >> file1.exe
echo "a change" >> file2.exe
svn commit -m "this is rev 2"

rem go back a rev so the files can be updated
svn update -r 1

echo lock the second file by running it then hit a key
pause

rem this should error out
svn update
-----end cut-------

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-06-03 17:17:52 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.