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 <vinc...@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)