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

Re: How to checkout a partial svn repository?

From: Alex <xlegion_at_gmail.com>
Date: 2006-04-19 16:55:38 CEST

On 4/19/06, Kirk Black <runesabre@familytimeinteractive.com> wrote:
>
> Hello,
>
> I'm using svn to manage all my project files, including files I want
> available on a website. What I would like to do is to checkout part of a
> svn repository on this website and be able to do a svn update thereafter
> without having any portions I did not explicitly checkout showing up
> later.
> I've tried manually checking out each sub-directory I want from svn but as
> soon as I issue a svn update at the top level directory, the other
> directories are then included and updated. I've tried manually removing
> write access from the directories I don't want to update but then svn
> simply
> stops updating everything and complains about a missing file lock.
>
> Here is an example of what I'm wanting to do.
>
> My repository looks like below:
> foo
> foo/project1
> foo/project1/data
> foo/project1/exe
> foo/project1/source_code
> foo/project2
> foo/project2/data
> foo/project2/exe
> foo/project2/source_code
>
> On my website I want to make all data and exe folders available but not
> the
> source_code directories.
> foo
> foo/project1
> foo/project1/data
> foo/project1/exe
> foo/project2
> foo/project2/data
> foo/project2/exe
>
> Once checked out and excluding all the source_code folders, I would like
> to
> thereafter change to folder foo on my webserver machine and do a single
> "svn
> update" and have all the sub-folders update without ever having the
> source_code folders included.
>
> I appreciate any help.
>
> Kirk Black
> Owner / Developer / Administrator
> Family Time! Interactive, L.L.C.
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
> For additional commands, e-mail: users-help@subversion.tigris.org
>
>
Use svn:externals.

$ svn mkdir foo/release
$ svn mkdir foo/release/project1
$ svn propset svn:externals foo/release/project1
<In the editor add>
data file:///<path-to-repos>/foo/project1/data
exe file:///<path-to-repos>/foo/project1/exe

Same for project2
Received on Wed Apr 19 17:01:11 2006

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.