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

Re: "is missing or not locked" error executing 'svn move dir1 dir2' if dir1 contains its own directory called dir2

From: Dean Thompson <dthompson_at_peakstrategy.net>
Date: 2005-06-24 11:52:31 CEST
Wow, thanks for the quick and thorough response!  I wish I could volunteer a patch, but I only started using subversion this week.  So far I love it!


kfogel@collab.net wrote:
Dean Thompson <dthompson@peakstrategy.net> writes:
I am fairly certain I have discovered a simple but severe subversion
bug.  Here is the script of my actions:

bash-2.05b$ mkdir tmp
bash-2.05b$ cd tmp
bash-2.05b$ mkdir svntest
bash-2.05b$ svn import
. svn+ssh://dthompso@cvs.peakstrategy.net/usr/local/svn
-m "test"
Adding         svntest

Committed revision 21.
bash-2.05b$ rm -rf svntest
bash-2.05b$ svn co
Checked out revision 21.
bash-2.05b$ ls
bash-2.05b$ cd svntest
bash-2.05b$ mkdir a
bash-2.05b$ mkdir a/b
bash-2.05b$ svn add a
A         a
A         a/b
bash-2.05b$ svn commit -m "test"
Adding         a
Adding         a/b

Committed revision 22.
bash-2.05b$ svn move a b
svn: Working copy 'b/b' is missing or not locked

Yup, this is a bug.  I've got a more compact reproduction recipe,
based on yours, and I've filed this as


Here's the recipe:

   rm -rf repos svntest
   ${SVNADMIN} create repos
   mkdir svntest
   ${SVN} import svntest ${URL}/svntest -m "test"
   rm -rf svntest
   ${SVN} co ${URL}/svntest
   cd svntest
   mkdir a
   mkdir a/b
   ${SVN} add a
   ${SVN} commit -m "test"
   # Even if you insert 'svn up' here, the following move command still
   # results in this error:
   # subversion/libsvn_wc/lock.c:677: (apr_err=155005)
   # svn: Working copy 'b/b' is missing or not locked
   ${SVN} move a b

Thanks for the report!  We'll fix it as soon as we can; obviously, if
you have time/ability to write a patch for it, that would be great.


--------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org For additional commands, e-mail: users-help@subversion.tigris.org Received on Fri Jun 24 18:25:37 2005

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.