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

Re: Why does svn up give me a different file than in the repo

From: Vincent Lefevre <vincent-svn_at_vinc17.net>
Date: Fri, 8 Mar 2019 10:34:50 +0100

On 2019-03-07 17:50:26 +0100, Branko Čibej wrote:
> On 07.03.2019 17:36, Vincent Lefevre wrote:
> > On 2019-03-07 05:26:48 -0600, Ryan Schmidt wrote:
> >> I had this problem once when I ran a recursive sed command over my
> >> working copy, not considering that it would modify the contents of
> >> the .svn directory too.
> > Would it be a good idea to protect the .svn directory by default?
> > I mean that Subversion would unprotect it before an operation and
> > protect it again just after.
>
> How would you do that, realistically? I can't think of any way other
> than changing permissions on all files within that directory.

Unsetting the 'r' permission on the .svn directory should be
sufficient: recursive operations would not be able to open this
directory for reading.

-- 
Vincent Lefèvre <vincent@vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)
Received on 2019-03-08 10:35:05 CET

This is an archived mail posted to the Subversion Users mailing list.