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

svn update fails on current directory: Working copy locked

From: Eduard Kotysh <nutellaboi_at_gmail.com>
Date: 2007-03-23 21:09:00 CET

I am executing the following commands from a Windows DOS prompt (cmd):

In DOS command prompt, from C:\tsunami\svn\build directory:

svn up -r HEAD . OK
svn up -r HEAD C:\tsunami\svn\build FAILS
with the following:

svn: Working copy 'C:\tsunami\svn\build' locked
svn: run 'svn cleanup' to remove locks (type 'svn help cleanup' for details)

If I do svn stat, I see no outstanding locks and svn cleanup doesn't do
anything.

Looks as if I give a fully qualified path, something behaves differently
than if I give the current directory!

From cygwin however, both work:

svn up -r HEAD . OK
svn up -r HEAD C:\tsunami\svn\build OK

I then thought that DOS cmd locks the directory and did a little test. I
created a temp directory, cd'd into it, and then tried to delete it.
Both, DOS prompt and cygwin locked the directory and prevented me from
deleting it, so that theory didn't stand...

I have exposed this problem in a different way as well:

 I wrote a simple ant svn task that updates current directory like this:

                <svn javahl="false">
                        <update dir="." recurse="false" />
                </svn>

When I run ant -f build.xml from the directory I'm trying to update, I get
the same error.
When I run ant -f build/build.xml from directory above, it works.

I then re-wrote it as plain ant executable:

                <exec executable="svn">
                        <arg line="up -r HEAD . --non-interactive"/>
                </exec>

When I run ant -f build.xml from the directory I'm trying to update, it
works.

This result right there makes me think that svn ant task implementation is
buggy.

I'd appreciate any help on all of this.

Thanks

Eduard Kotysh
Received on Sun Mar 25 19:09:11 2007

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.