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

RE: Re: Check out only one project

From: Bob Archer <bob.archer_at_amsi.com>
Date: Fri, 28 Aug 2009 13:50:52 -0400

> On Fri, Aug 28, 2009 at 13:32, Javier Montani<j_montani_at_yahoo.com>
> wrote:
> > In the first local machine I have:
> > /projects
> >         /project0001
> >         /project0002
> >          .
> >          .
> >          .
> >         /project1000
> >
> > I committed everything to have it in the server.
> > Then, in a new PC, I want to check out only project0001 and
> project0002 but the whole tree is being retrieved.
>
> svn co <URL>/projects/project0001
>
> Unless project0001 contains an svn:external that points back to the
> root of the repository (which would be incredibly bad), that should
> only get you project0001

Well, there are two ways to do this. It depends on what you want as a working directory. If you want both project0001 and project002 on the client but you want to be able to update both of them, then you need to check out the projects folder with a --depth=empty then check out the two projects that you want underneath that.

svn co ^/projects --depth empty
cd projects
svn co ^/projects/project0001
svn co ^/projects/project0002

This will get you a sparse checkout of the projects directory and a full checkout of each project folder.

If you just want each project to be a separate working copy, then check them out separately as Andy shows above.

cd ~
svn co ^/projects/project0001
svn co ^/projects/project0002

BOb

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

To unsubscribe from this discussion, e-mail: [users-unsubscribe_at_subversion.tigris.org].
Received on 2009-08-28 19:51:49 CEST

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.