[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: Cooke, Mark <mark.cooke_at_siemens.com>
Date: Thu, 27 Oct 2011 10:28:05 +0100

> 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_at_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
Received on 2011-10-27 11:28:51 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.