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

Re: Error copying repo file over deleted WC dir: no write-lock in parent

From: Philip Martin <philip.martin_at_wandisco.com>
Date: Fri, 05 Nov 2010 09:25:09 +0000

Julian Foad <julian.foad_at_wandisco.com> writes:

> Can I have a second pair of eyes on this please? When copy_tests.py 94
> deletes a WC directory 'A/B' and tries to copy the repos file 'iota' to
> WC path 'A/B', it the svn_wc_add_repos_file4() call fails with:
>
> .../libsvn_client/copy.c:1570: (apr_err=155005)
> .../libsvn_wc/update_editor.c:5572: (apr_err=155005)
> .../libsvn_wc/lock.c:1468: (apr_err=155005)
> svn: No write-lock in '.../copy_tests-94/A'
>
> I don't understand why svn_wc_add_repos_file4() requires this parent to
> be locked, while seven other code paths succeed:
>
> WC-to-WC copies: (file/dir) over (file/dir)
> repos-to-WC copy: file over file
> repos-to-WC copy: dir over dir
> repos-to-WC copy: dir over file

The parent would certainly have been locked in 1.6. I think we lost
some of the lock checking early on in 1.7.

-- 
Philip
Received on 2010-11-05 10:25:53 CET

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.