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

Re: svn export selected parts of svn:externals

From: Ryan Schmidt <subversion-2012c_at_ryandesign.com>
Date: Tue, 26 Mar 2013 05:40:22 -0500

On Mar 26, 2013, at 02:46, "Niemann, Hartmut" wrote:

> I have a directory <stuff> with some files and a list of svn:external directories <stuff/one/>, <stuff/two/> and so on.
> I want to svn export <stuff> with the files in it and only one of the svn:externals, not the others.
>
> I do not want to refer to the repository where the externals are located in, because the script that does the
> Svn export should not (need to) know where they are.
>
> I tried to svn export --depth files stuff && svn export --depth infinity stuff/one, but this fails because this directory is not existent in the repository.
>
> Is it possible to svn export only one of several svn:external directories?
> Or should I export all and delete all the files I don't need?
>

I don't think what you want is easily possible. You'll have to script it.

You could export with all the externals and delete the ones you don't need, as you suggest.

Or you could export with no externals at all, then manually export the ones you want. You say you don't want the script to need to know where the externals are located, but it doesn't need to: it can look it up from the svn:externals property using "svn propget".
Received on 2013-03-26 11:41:01 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.