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

checkout and "Working copy not locked" errors

From: greg Landrum <greglandrum_at_mindspring.com>
Date: 2004-02-27 20:33:16 CET

Greetings,

We are in the process of moving from CVS to subversion and are pretty happy with svn so far, it's quite an improvement! However, I've hit a snag with doing partial checkouts and I'm curious to find out if this is user error or a subversion bug.

For the sake of efficiency, our scripts for regression testing check out parts of our repository instead of pulling the whole thing. So for this directory tree:

--baseproj/
----subd1/
----subd2/

I may only pull the baseproj and baseproj/subd1 directories.

With cvs, I'd do something like this:
cvs co -l baseproj
cd baseproj
cvs update -d subd1

I'd like to do something equivalent with subversion, so I set up a little test repository. Here's the result of pulling the entire thing:

glandrum: /tmp/co > svn checkout svn://localhost/tmprepos/baseproj baseproj
A baseproj/subd2
A baseproj/subd2/file21
A baseproj/subd2/file22
A baseproj/base1
A baseproj/base2
A baseproj/subd1
A baseproj/subd1/file1
A baseproj/subd1/file2
Checked out revision 1.

The repository is there and it is functional.

So now, the problem. First I checkout the base directory:
glandrum: /tmp/co > svn checkout -N svn://localhost/tmprepos/baseproj baseproj
A baseproj/base1
A baseproj/base2
Checked out revision 1.

Everything ok so far... but now try checking out a subdirectory:
glandrum: /tmp/co > svn checkout svn://localhost/tmprepos/baseproj/subd1 baseproj/subd1
svn: Working copy 'baseproj/subd1' not locked

whoops. Maybe changing into the directory helps?
glandrum: /tmp/co > cd baseproj/
glandrum: /tmp/co/baseproj > svn checkout svn://localhost/tmprepos/baseproj/subd1 subd1
svn: Working copy 'subd1' not locked

Nope... still not working.

An additional piece of information that leads me to believe that this might be a bug: a coworker, who connects to the svn server remotely (using a standard ssh tunnel), can *sometimes* do these local checkouts without getting the "Working copy not locked" errors. Sometimes they work, sometimes they don't.

In case it matters, this is all being done using version 1.0.0 of subversion, compiled from source on a RedHat 8.0 box.

Thanks for any help you can provide,
-greg

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Feb 27 20:32:43 2004

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.