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

Re: Checkout question...

From: Michael Mason <mgm_at_eskimoman.net>
Date: 2004-11-30 18:26:12 CET

On Tue, 30 Nov 2004, Glenn E. Sieb wrote:

> One of my developers is trying to do the following:
>
> $ cd /
> $ mkdir opt
> $ svn co -r "HEAD" svn+ssh://reposerver/svn/One/trunk/ .
> $ svn co -r "HEAD" svn+ssh://reposerver/svn/Two/trunk/ .
> $ svn co -r "HEAD" svn+ssh://reposerver/svn/Three/trunk/ .
>
> The three repos in question are separate projects, but work together.
> They do not have directories in common. What should happen is that those
> commands should check out the latest version into directories:

The problem is that you're trying to check out different repositories into
the same directory, . in this case. Subversion won't let you do that,
because after the first checkout is done, . is a working copy.

This would work (you don't need 'HEAD' - Subversion gets the latest code
by default)

$ svn co svn+ssh://reposerver/svn/One/trunk/ workingCopyOne
$ svn co svn+ssh://reposerver/svn/Two/trunk/ workingCopyTwo
$ svn co svn+ssh://reposerver/svn/Three/trunk/ workingCopyThree

Now this still probably doesn't achieve what you want, since you'll have
three directories on the client. What might work better is to create a new
project in your repository which pulls in items from the other
repositories using svn:externals. There's more in the book here:

http://svnbook.red-bean.com/en/1.0/ch07s03.html

Another thing you might consider is using just one repository - why do you
feel you need three separate repositories?

Cheers,
Mike.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Tue Nov 30 18:29:10 2004

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