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

Re: .svn directory - safe to add files in ".svn" or ".svn/tmp"?

From: Ben Reser <ben_at_reser.org>
Date: Fri, 07 Mar 2014 08:48:36 -0800

On 3/7/14, 8:24 AM, jrm wrote:
>> Do not do anything in the .svn directory. That directory is
>> exclusively for the use of the SVN working copy library and you could
>> easily break your WC.
>
> Sure - if I overwrote something that has a genuine purpose - or created
> something in a location where SVN expects exactly certain files to be.
> But is SVN so fragile that it can't tolerate a differently named
> subdirectory
> or file under there?
>
> Or has experience taught you to treat SVN as fragile?

The proper solution is to use your own directory alongside .svn.

Could you put it under .svn, it's likely you could do it and it would work. I
wouldn't use tmp because while Subversion should be pretty tolerant to this
there's no guarantee we won't make changes that would make it less so in the
future.

While we may take reasonable steps to avoid problems, we also have a completely
reasonable belief that everything under .svn is for the exclusive use of
Subversion and should only be modified using the methods that we use.

For example. It's perfectly reasonable for us to take out an exclusive lock on
the wc, look at the files in tmp, generate a new name based on that and then
assume that some other program hasn't also decided to use that same name
because we have an exclusive lock.
Received on 2014-03-07 17:49:09 CET

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.