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

RE: Newbie - Checkout / layout question

From: Robert Hunter <robert.hunter_at_gen-i.co.nz>
Date: 2005-02-28 23:53:10 CET

>> Is it possible for a developper to checkout the entire Source tree and
>> getting every project's trunk? Or does such a need require a different
>> repository layout?
>
> You can either:
>
> 1) Run several checkout commands
> 2) Re-arrange your repository like this:
>
> /trunk
> /App1
> /App2
> /Lib1
> /branches/
> /App1
> /App2
> /App3
> /tags
> /App1
> /App2
> /App3
>
> Then, you can do "svn co url:///repos/trunk" which will
> give you the trunk of each of App1, App2 and Lib1.

At least in a GNU environment, you could try:
$ mkdir sources sources/apps sources/libs
$ svn ls $REPOS/Sources/Apps | xargs --replace svn checkout {}/trunk
sources/apps/{}
$ svn ls $REPOS/Sources/Libs | xargs --replace svn checkout {}/trunk
sources/libs/{}

This would (hopefully, untested!) result in each project
trunk being checked out individually.

Another trick would be to have a folder in the repository,
say /alltrunks, and put a svn:externals property on that
which looks something like:

App1 url://repos/Sources/Apps/App1/trunk
App2 url://repos/Sources/Apps/App2/trunk
Lib1 url://repos/Sources/Libs/Lib1/trunk

Then users could check out /alltrunks if they so desired.

-- 
Robert Hunter
*****************************************************************************
This communication, including any attachments, is confidential.
If you are not the intended recipient, you should not read it
- please contact me immediately, destroy it, and do not copy
or use any part of this communication or disclose anything about it,
Thank you.
Please note that this communication does not designate an information system
for the purposes of the Electronic Transactions Act 2002
******************************************************************************
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Mon Feb 28 23:56:22 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.