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

RE: externals : fetching only file in a directory

From: Jack Repenning <jrepenning_at_collab.net>
Date: 2005-01-12 22:23:15 CET

> -----Original Message-----
> From: news [mailto:news@sea.gmane.org] On Behalf Of Evadream
> Sent: Saturday, January 08, 2005 1:50 PM

> Here is my project tree
>
> ./
> foo/
> src/
>
> I'd like to add an svn:externals propertie to foo/, so i use :
> svn propedit foo/ file:///tomarepos/utils/a_directory/
>
> It update my tree to ./foo/a_directory/ but i'd like to recover only the
> files inside a_directory, i mean, i would like to have :
>
> ./foo/a_directory_file1.c

I'm not sure I follow your question and examples. They don't quite follow
the actual syntax of the svn commands. Maybe that's just typos, or maybe
that's your actual confusion.

There are three names involved in an svn:externals definition: the directory
that's created, the directory that's the repository source of the data to be
copied into your wc, and the directory that carries the property. You seem
to be showing only two, not three, names.

I think you want your checkout to create a directory named "foo", whose
contents are the same as the repository directory
file:///tomarepos/utils/a_directory/

To do that, use this incantation:

cd . # that is, the "./" in your example, the parent of the desired foo
svn propset svn:externals "foo file:///tomarepos/utils/a_directory/" .

(the quotes are very important!)

Notice the three names:
1. "foo" is the thing you want created
2. "file:///tomarepos/utils/a_directory/" is where to get it
3. "." is where to plant the property

Or, since your example uses "propedit" rather than "propset", use this
incantation:
svn propedit svn:externals .

... and then in the editor that's opened, create the one line
foo file:///tomarepos/utils/a_directory/

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Wed Jan 12 22:25:56 2005

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