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

Re: Strange lock/unlock behavior in version 1.2

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

On 2005-05-25 13:10+0200, Daniel Jedecke wrote:
> Hello,
>
> i played around with version 1.2 of subversion and found a litte bug.
>
> i have a file called "dosomething.pl" with permissions 555
> ( svn:needs-lock set )
> when i lock the file with "svn lock dosomething.pl" the file have the
> permission 644.
>
> if i unlock the file. the permissions are set to 444 and the
> executeable flag won't be set.
>
> Properties on 'dosomething.pl':
> svn:executable
> svn:needs-lock
>
> if i make changes an commit the file, its set correctly to 555.
>
> Can anybody confirm that behavior?

Yep, thanks for the report!

#!/bin/sh

rm -rf wc repo

svnadmin create $(pwd)/repo
svn co file://$(pwd)/repo wc
cd wc
touch file.x
ls -l file.x
svn add file.x
svn ps svn:needs-lock '' file.x
svn ps svn:executable '' file.x
svn ci -m ''
ls -l file.x
echo
echo "Next, lock file"
svn lock file.x
ls -l file.x
date >> file.x
svn unlock file.x
ls -l file.x
svn ci -m '' file.x
ls -l file.x
#########################################################

$ sh recipe.sh
Checked out revision 0.
-rw------- 1 jaa jaa 0 May 25 09:26 file.x
A file.x
property 'svn:needs-lock' set on 'file.x'
property 'svn:executable' set on 'file.x'
Adding file.x
Transmitting file data .
Committed revision 1.
-r-x------ 1 jaa jaa 0 May 25 09:26 file.x

Next, lock file
'file.x' locked by user 'jaa'.
-rw------- 1 jaa jaa 0 May 25 09:26 file.x
'file.x' unlocked.
-r-------- 1 jaa jaa 29 May 25 09:26 file.x
Sending file.x
Transmitting file data .
Committed revision 2.
-r-x------ 1 jaa jaa 29 May 25 09:26 file.x

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:31:59 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.