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

Re: read-only attribut

From: Stefan Sperling <stsp_at_elego.de>
Date: Thu, 27 Oct 2011 11:14:55 +0200

On Wed, Oct 26, 2011 at 10:27:24PM +0200, romaric rillet wrote:
> Hi,
>
> I have un file with the filesystem read-only attribut.
> I commit this file with <svn commit test.cpp -m "">.
> Since version 1.7, the filesystem read-only attribut is removed by the
> commit operation.
>
> I would like to keep this attribut ( like with version 1.6 ).

There is built-in support for keeping this attribute.
But there are two ways to work around this limitation:

1) Use the 'asvn' script instead of 'svn', see
   https://svn.apache.org/repos/asf/subversion/trunk/contrib/client-side/asvn
   This script requires bash so you need cygwin to run it on windows.

2) Set the svn:needs-lock property on the file. The file will be marked
   read-only upon checkout. Running 'svn lock' on the file will make it
   writable, and after commit the file will be read-only again.
Received on 2011-10-27 11:15:35 CEST

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.