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

Re: removing a directory and externals

From: Stefan Küng <tortoisesvn_at_gmail.com>
Date: Mon, 08 Dec 2014 21:09:41 +0100

On 08.12.2014 20:49, Ben Fritz wrote:

>> That's not officially supported by svn!
>> If you really need an external that's below the folder where you set the
>> property, you have to at least add the folders below to svn too.
>
> Are you sure that's not supported? I think this is supported for
> directory externals. The SVN book says:
>
> "While directory externals can place the external directory at any
> depth, and any missing intermediate directories will be created, file
> externals must be placed into a working copy that is already checked out."
>
> http://svnbook.red-bean.com/en/1.7/svn.advanced.externals.html
> http://svnbook.red-bean.com/en/1.8/svn.advanced.externals.html
>
> Unless I'm misunderstanding, it looks like that's intended to be
> supported. I'd be interested in whether the command-line tools also fail
> in this scenario.

Yes, it is somewhat supported as the book says. But you'll get into
troubles and some functions simply won't work as expected.
As you can see from the 'svn rm' command: it correctly detects that
there are unversioned items in the folder you want to remove and throws
an error. It doesn't matter if that unversioned item is there simply
because of the external - it's unversioned and svn doesn't check further
if it's really empty or not.

Also, the 'svn st' won't show the status properly for the external
folder in this situation, you'd have to show the status for the external
directly.

Most functions work though, but as I said, some don't (at least not as
most users expect them to). So I really don't recommend that kind of setup.

Stefan

-- 
       ___
  oo  // \\      "De Chelonian Mobile"
 (_,\/ \_/ \     TortoiseSVN
   \ \_/_\_/>    The coolest interface to (Sub)version control
   /_/   \_\     http://tortoisesvn.net
------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3092412
To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-12-08 21:09:54 CET

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

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.