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

bug report: update -N on deleted folder corrupts the working copy

From: Moisei Rabinovich <moisei_at_gmail.com>
Date: 2006-04-01 15:29:17 CEST

Hello dear all,
I did not find a way to submit the bug report, neither I found a similar bug
reports, so I decided to attach the transcript here.
The scenario is exactly as described in the subject.
The consequence that working copy is not operational until the folder in
question is manualy deleted from the working copy and svn cleanup is
executed.
Here is the script (windows batch). drive T is used as a temporary drive to
make it possible to build a right repo url.

@REM prepare env
@rmdir /s/q demorepo
@rmdir /s/q wc
@rmdir /s/q wc1
@subst T: /d
@subst T: .
@svnadmin create demorepo
@svn co "file:///T:/demorepo" wc
@mkdir wc\DIR
@mkdir wc\DIR\SUBDIR
@echo TEXT > DIR\SUBDIR\f1.txt
@svn add wc\DIR
@svn commit wc -m "prepare content"
@svn co "file:///T:/demorepo" wc1

@REM demonstration scenario
REM rename directory
svn rename "wc\DIR" "wc\DIR_NEW"
svn commit wc -m "rename DIR to DIR_NEW"
REM following leads the working copy to be locked.
REM and the cleanup command fails until the DIR folder isnot removed
manually
REM strongly unexpected on any automation system
svn up -N wc1\DIR
REM from now on any commands would fail until DIR is not removed
svn cleanup
svn up wc1
@REM all the above are failed. to restore, uncomment the code below
@REM rmdir /s/q wc1\DIR
@REM @REM and finally the working copy can be updated after cleanup
@REM svn cleanup wc1
@REM svn up wc1

--
Best Regards,
Moisei
Received on Sat Apr 1 15:31:05 2006

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.