[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: Ben Fritz <fritzophrenic_at_gmail.com>
Date: Tue, 9 Dec 2014 05:43:10 -0600

On Mon, Dec 8, 2014 at 2:09 PM, Stefan Küng <tortoisesvn_at_gmail.com> wrote:
>
> 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.
>

Thanks for clarifying. I guess the easy workaround is to delete the
external-created folders and/or use "Update to revision" to delete the
externals prior to the remove.

> 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.
>

I guess that's why folders like these don't have an overlay icon. Good to
know! I always wondered about that.

> 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.
>

The main time I've found it useful is to create something like this:

extern/somelib/include
extern/somelib/lib

from a source project like this:

/somelib/trunk/include
/somelib/trunk/lib
/somelib/trunk/src
/somelib/trunk/projects
/somelib/trunk/rehost
/somelib/trunk/doc

keeping all svn:externals definitions centrally on the "extern" folder.

------------------------------------------------------
http://tortoisesvn.tigris.org/ds/viewMessage.do?dsForumId=4061&dsMessageId=3092450

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_tortoisesvn.tigris.org].
Received on 2014-12-09 12:43:43 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.