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

Re: external definitions - flatten

From: allan juul <allan_at_muly.dk>
Date: 2005-06-08 22:19:29 CEST

Ben Collins-Sussman wrote:
> 'svn checkout' only works on directories, not single files. And the
> svn:externals feature is essentially nothing but a list of extra
> directories to checkout.

which i what im trying to accomplish, albeit with a flattened structure

There are plans, I believe, to make
> svn:externals able to checkout a single file someday. Until then,
> there's no workaround that I can think of.

i'm, quite 100% sure i didn't explain myself correctly ;)

i'm quite happy with the usual svn:externals behavior working on dirs.
i just wished there was an extra (perhaps default) option that when you
edit the property on the relevant root dir (lets call it ROOT) and you
specify the same dir (in this case called 'my_externals') more than once
then you automatically get all the specified URLs (which are URLs
pointing to dirs) downloaded into that dir

so a svn propget ROOT will display:

my_externals URL/externals/proj1/here_we_have_dirs_and_files_from_proj1
my_externals URL/externals/proj1/here_we_have_dirs_and_files_from_proj2

and a svn co URL/TO/ROOT will get

ROOT/usual/stuff
ROOT/my_externals/here_we_have_dirs_and_files_from_proj1
ROOT/my_externals/here_we_have_dirs_and_files_from_proj2

as it is today i will end up with

ROOT/usual/stuff
ROOT/my_externals/here_we_have_dirs_and_files_from_proj2

./allan

>
> On Jun 7, 2005, at 12:35 PM, allan juul wrote:
>
>> hi
>>
>> given that i have an external definition structure like:
>>
>> /externals/proj1/file1
>> /externals/proj1/file2
>> /externals/proj1/file3
>>
>> /externals/proj2/file21
>> /externals/proj2/file22
>> /externals/proj2/file23
>>
>>
>> is it possible to get all 6 files from the above sub dirs into *one*
>> dir during a check out, so that i end up with ?
>>
>> /my_externals/file1
>> /my_externals/file2
>> /my_externals/file3
>> /my_externals/file21
>> /my_externals/file22
>> /my_externals/file23
>>
>>
>> i seem to be able to get the files from one dir only.
>>
>> this is possible:
>>
>> $ svn propedit svn:externals mainproject
>>
>> my_externals URL/externals/proj1/
>> my_externals URL/externals/proj2/
>>
>> but only proj2 gets checked out
>>
>>
>>
>> ./allan
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
>> For additional commands, e-mail: users-help@subversion.tigris.org
>>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jun 8 22:21:58 2005

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.