subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Stefan Sperling <>
Subject Re: read-only attribut
Date Thu, 27 Oct 2011 09:14:55 GMT
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
   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.

View raw message