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

[BUG] svn copy from non-existent repository location leaves WC locked

From: Francois Beausoleil <fbos_at_users.sourceforge.net>
Date: 2004-04-05 03:52:56 CEST

Hello everyone !

I believe I found a slight bug. It looks like svn copy leaves the WC
locked
if it can't find the source of the copy.

I'm on WinXP SP1 and SVN 1.0.1 (don't worry about the $. I use PROMPT
$$$S)

Here's the recipe:

rd /s/q repos wc
cls
svn --version
svnadmin create repos
svn checkout file:///repos wc
cd wc
md someFolder
echo dummy data >someFolder\file.txt
svn add someFolder
svn commit --message "r1"
svn delete someFolder
svn commit --message "r2"
svn copy --revision 2 file:///repos/someFolder someFolder
svn copy --revision 1 file:///repos/someFolder someFolder

And here's a run of the recipe:

$ svn --version
svn, version 1.0.1 (dev build)
   compiled Mar 25 2004, 16:25:21

[snip]

$ svnadmin create repos

$ svn checkout file:///repos wc
Checked out revision 0.

$ cd wc

$ md someFolder

$ echo dummy data 1>someFolder\file.txt

$ svn add someFolder
A someFolder
A someFolder\file.txt

$ svn commit --message "r1"
Adding someFolder
Adding someFolder\file.txt
Transmitting file data .
Committed revision 1.

$ svn delete someFolder
D someFolder\file.txt
D someFolder

$ svn commit --message "r2"
Deleting someFolder

Committed revision 2.

$ svn copy --revision 2 file:///repos/someFolder badFolder
svn: Path 'file:///repos/someFolder' not found in revision '2'

$ svn copy --revision 1 file:///repos/someFolder someFolder
svn: Working copy '.' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for
details)

At this point, if I cleanup as asked, and copy from the right revision, I
get the expected behavior.

Bye !
François
Developer of Java Gui Builder
http://jgb.sourceforge.net/

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 5 03:53:11 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.