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

svn:needs-lock on symbolic links

From: Norbert Foerster <N.Foerster_at_gmx.de>
Date: 2006-08-21 22:07:47 CEST

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I had some fun after setting svn:needs-lock on symbolic links under linux.
svn seems to try to set the link and/or it's target to read-only.
It all started because I've set the svn:needs-lock property recursively
on a structure which contained links.

I noted the steps to reproduce the behavior with svn 1.3.2
I didn't got the error in step 6 reported under svn 1.3.0.

Has anyone suggestions how to repair the repository?
Is this a bug? I think svn should not (try to) chmod links.

#!/bin/csh
setenv SVN_DIR /tmp
setenv HOME /home/nf2
setenv WORK $HOME/svn-link-issue/
setenv SVN $WORK/subversion-1.3.2/subversion/clients/cmdline/svn
setenv SVNADMIN $WORK/subversion-1.3.2/subversion/svnadmin/svnadmin

echo "1. creating repository"
$SVNADMIN create $SVN_DIR/repos

echo "2. adding initial structure"
$SVN mkdir file://$SVN_DIR/repos/trunk -m "creating initial repository layout"

echo "3. checkout sandbox"
cd $WORK
$SVN co file://$SVN_DIR/repos wc

echo "4. adding 2 folders, a file and a link"
cd wc
mkdir trunk/folder-a
mkdir trunk/folder-b
touch trunk/folder-b/target
ln -s trunk/folder-b/target trunk/folder-a/link
$SVN add trunk/*
$SVN commit trunk -m "adding two folders and a link"

echo "5. adding needs-lock recursively"
cd $WORK/wc
$SVN pset -R svn:needs-lock "*" trunk/folder-a/link

echo "6. this commit succeeds with errors, bringing the repository in a really bad situation"
$SVN commit trunk -m "needs-lock added"

echo "7. checkout 2nd sandbox fails. yes, chmod on a link is not nice;-)"
cd $WORK
$SVN co file://$SVN_DIR/repos wc2

echo "8. trying to fix it in old sandbox fails "
cd $WORK/wc
$SVN propdel svn:needs-lock trunk/folder-a/link
$SVN commit -m " removing needs-lock on link"
$SVN cleanup

echo "9. direct fix also fails, not supported"
$SVN propdel svn:needs-lock file://$SVN_DIR/repos/trunk/folder-a/link

- --
Norbert Foerster Key: http://www.nandbert.de/key/0xC87EBF96.asc
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.4 (GNU/Linux)
Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org

iD8DBQFE6hKTAGIrQMh+v5YRAhT7AJ9990v/BfvSryCW/nVPM761hvgJkwCgq2sU
mZcQqJeibbCMowVOm130Xsw=
=Rcoz
-----END PGP SIGNATURE-----

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Aug 21 22:30:48 2006

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.