You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Jon Mann <jo...@silicon.co.uk> on 2006/01/13 11:37:20 UTC

Checkout a specific set of paths from a repository

Hello all,

I have a question regarding checkout of a specific set of paths from a 
Subversion repository.

The repository is structured as follows:

   /projectA/trunk/...
   /projectA/tags/...
   /projectA/branches/...
   /projectB/trunk/...
   /projectB/tags/...
   /projectB/branches/...
   /projectC/trunk/...
   /projectC/tags/...
   /projectC/branches/...
   etc...

Normally, I am working with a single project trunk:

   svn co <repository>/projectA/trunk

The problem occurs when I want to make a change across multiple project 
trunks. In this scenario, I want to be able to checkout all (or some) of 
the project trunks in a single checkout, ignoring the project tags and 
branches.

If I checkout the whole repository:

   svn co <repository>/

then I get a copy of all the tags and branches, which takes a great deal 
of time and disk.

I only want to checkout a specific set of paths:

   /projectA/trunk
   /projectB/trunk
   /projectC/trunk

where I can make a common change and commit in a single revision.

Is this possible? How?

I'm running Subversion (1.1.4) on Debian Sarge.

Thanks for your help,
Jon Mann.



-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org

Re: Checkout a specific set of paths from a repository

Posted by Ryan Schmidt <su...@ryandesign.com>.
On Jan 13, 2006, at 12:37, Jon Mann wrote:

> I only want to checkout a specific set of paths:
>
>   /projectA/trunk
>   /projectB/trunk
>   /projectC/trunk
>
> where I can make a common change and commit in a single revision.
>
> Is this possible? How?


$ svn co -N url://to/repo foo
$ cd foo
$ svn up -N projectA projectB projectC
$ svn up {projectA,projectB,projectC}/trunk


Note however that "svn co -N" is somewhat busted and may not work  
correctly. See:

http://subversion.tigris.org/issues/show_bug.cgi?id=695



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org