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

Re: Checkout problem with symlinks and locks

From: Jani Averbach <jaa_at_jaa.iki.fi>
Date: 2005-05-25 17:41:32 CEST

On 2005-05-25 13:30+0200, Daniel Jedecke wrote:
> Hello again.
>
> i have the following file structure
>
> /trunk/cgi-bin/
> ...
> lrwxrwxrwx 1 dj users 12 May 25 12:43 /trunk/cgi-bin/index-demo-
> en.pl -> index-src.pl
> -r-xr-xr-x 1 dj users 1544 May 25 12:43 /trunk/cgi-bin/index.pl
> -r-xr-xr-x 1 dj users 1431 May 25 12:43 /trunk/cgi-bin/index-src.pl
> ....
>
> all files have set "svn:needs-lock"
>
> If i checkout this repository to a new user, i got en error
>
> svn: In directory '/trunk/cgi-bin'
> svn: Can't change read-write perms of file '/trunk/cgi-bin/index-demo-
> en.pl': No such file or directory
> ...

> it seems that subversion want to change the permission on the
> symlinks, but the source file was not loaded yet, so the checkout abort.
...
> Can anybody confirm that?

I can confirm this, time to time. I managed to get twice svn to checkout
the symlink first and then there will be this error, but I can't reliably
reproduce this. Thanks again for report.

I used following recipe:

#!/bin/sh

rm -rf wc repo wc2

svnadmin create $(pwd)/repo
svn co file://$(pwd)/repo wc
cd wc
touch file.x
ln -s file.x asymlink.x
svn add asymlink.x
svn ps svn:needs-lock '' asymlink.x
svn ci -m ''
svn add file.x
svn ps svn:needs-lock '' file.x
svn ci -m ''
cd ..
svn co file://$(pwd)/repo wc2

BR, Jani

-- 
Jani Averbach
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Wed May 25 17:45:15 2005

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.