You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Evadream <ev...@evadream.net> on 2005/01/08 21:50:28 UTC
svn:externals : fetching only file in a directory
Hello everybody,
My problem is quite basic, maybe it as been (certainly) already posted, but
i didn't find it :/
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
./foo/a_directory_file2.c
./foo/a_directory_file3.c
...
Is it possible ?
Thanx for any answer !
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Re: svn:externals : fetching only file in a directory
Posted by Evadream <ev...@evadream.net>.
Thanx for your response :)
I've read the svn book, and it was clearly said that working with external
files was not possible. But i wasn't sure if there wasn't a way to do what i
want by considering ALL the file inside an external directory.
Have to wait the next release !
Thanx again !
On Sunday 09 January 2005 00:44, Rami Kayyali wrote:
> Unfortunately, this isn't possible. From what I've been told,
> svn:externals checks out a *versioned* working copy of the external
> directory, making it impossible to check out individual files. See
> this for more info http://svnbook.red-bean.com/en/1.0/ch07s03.html.
>
> --
> Rami
>
> On Sat, 08 Jan 2005 22:50:28 +0100, Evadream
>
> <ev...@evadream.net> wrote:
> > Hello everybody,
> >
> > My problem is quite basic, maybe it as been (certainly) already posted,
> > but i didn't find it :/
> >
> > 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
> > ./foo/a_directory_file2.c
> > ./foo/a_directory_file3.c
> > ...
> >
> > Is it possible ?
> >
> > Thanx for any answer !
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> > For additional commands, e-mail: users-help@subversion.tigris.org
Evadream wrote:
> Hello everybody,
>
> My problem is quite basic, maybe it as been (certainly) already posted,
> but i didn't find it :/
>
> 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
> ./foo/a_directory_file2.c
> ./foo/a_directory_file3.c
> ...
>
> Is it possible ?
>
> Thanx for any answer !
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
RE: externals : fetching only file in a directory
Posted by Jack Repenning <jr...@collab.net>.
> -----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