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

Re: Query: svn externals and export

From: Ryan Schmidt <subversion-2009d_at_ryandesign.com>
Date: Wed, 9 Dec 2009 12:34:00 -0600

On Dec 9, 2009, at 10:15, Andrew Hardy wrote:

> I'm creating our build scripts on a Windows machine for one of our
> projects. The project includes some 'shared' code accessed through
> svn:externals on the 'trunk' directory:
>
> C:\tst>svn propget svn:externals http://locode01/svn/TAPS/trunk
> PLPDF http://locode01/svn/PLPDF/tags/PLPDF_v204_sophos
> Tools http://locode01/svn/OracleTools/trunk
>
> The build script performs exports of specific directories above the
> trunk so as to avoid 'unwanted' directories e.g. documentation, test
> data, etc.
>
> An export or checkout of the trunk will include the 'external'
> directories, however I cannot export those directories individually by
> name:
>
> C:\tst>svn export http://locode01/svn/TAPS/trunk/PLPDF PLPDF
> svn: URL 'http://locode01/svn/TAPS/trunk/PLPDF' doesn't exist
>
> C:\tst>svn --version
> svn, version 1.6.1 (r37116)
> compiled Apr 9 2009, 14:52:44
>
> Is this the expected behaviour?

Yes.

> If so, how should I construct a build
> script to cope with this - with the consideration that I may not know of
> future use of 'externals' e.g. the 'wibble' directory becoming
> externally referenced at some unknown time.

You could non-recursively check out the parent directory ("svn checkout -N"), then "svn update" each directory that you do want. Doesn't matter if the directory is real or an external.

The depth feature (--depth) allegedly replaced the nonrecursive feature (-N) in Subversion 1.5 but I have not yet learned the new syntax so I don't know if it works the same.

------------------------------------------------------
http://subversion.tigris.org/ds/viewMessage.do?dsForumId=1065&dsMessageId=2428948

Please start new threads on the <users_at_subversion.apache.org> mailing list.
To subscribe to the new list, send an empty e-mail to <users-subscribe_at_subversion.apache.org>.
Received on 2009-12-09 19:34:59 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.