You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by romaric rillet <ri...@gmail.com> on 2011/10/26 22:27:24 UTC
read-only attribut
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 ).
Thanks
Romaric
RE: read-only attribut
Posted by "Cooke, Mark" <ma...@siemens.com>.
> 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 ).
>
> -----Original Message-----
> From: Stefan Sperling [mailto:stsp@elego.de]
> Sent: 27 October 2011 10:15
> Subject: Re: read-only attribut
>
> 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.
Question: why would svn fiddle with this anyway? I would not expect svn to change local attributes at all (unless svn:needs-lock is set, of course).
~ mark c
Re: read-only attribut
Posted by Stefan Sperling <st...@elego.de>.
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.