You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@subversion.apache.org by Steve Bakke <st...@amd.com> on 2006/12/14 03:39:16 UTC

File permissions behavior change from 1.2.3/1.3.0 to 1.4.x

I attempted to first raise this issue on the subversion users¹ mailing list,
but got no response.  I¹m pretty confident that this is a bug or at least it
is an undocumented change in behavior from prior releases.

We have a setup where there is a centralized working copy accessed by
multiple users.  As a result, having the correct permissions set on things
makes or breaks this working model.  Our working copy directories are all
set up to have read+write user and group permissions.
We are working with a number of binary files that we have set up to have
needs-lock properties.   Prior to subversion 1.4.0, the behavior of the Œsvn
lock¹ command was such that the user executing the command would assume
ownership of the file and get write permissions.  Effectively, it would
delete the original file in the working copy and then copy a fresh version
in place. (at least this is what it appears to do)  It works this way in
both 1.2.3 and 1.3.0.  Meanwhile, svn unlock leaves the file read-only
across the board. 
With 1.4.0, it now reports an error that it can¹t change the file
permissions. (I believe it is also the same with 1.4.2)  This is a pretty
significant change in behavior.  I imagine that most people haven¹t noticed
since most people use private working copies.

Can somebody confirm that this is a bug?  It is very easy to reproduce. We
managed to work around the issue, but it¹s an ugly hack to a wrapper script
to move the file and copy it back so that the user can assume ownership and
call Œsvn lock¹.  If somebody wants to lock a large number of files, it
takes a lot longer now.

Thanks,

Steve Bakke