You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@subversion.apache.org by Pierre Couderc <pi...@couderc.eu> on 2008/03/25 16:10:37 UTC

How to split a project with trunk, branches and tags strutures?

Is there simple solution to split a project using the standard structure
   with trunk, branches and tags:
my p1 and p2 project are in a standard struture :

trunk
   p1
   p2
branch
   B1
      p1
      p2
   B2
      p1
      p2
    ...
-I omit tags to make it  simple)
I want to create 2 repositories one for p1 and one for p2 on another 
server :
trunk
   p1
branch
   B1
      p1
   B2
      p1
...
and on another server :
trunk
   p2
branch
   B1
      p2
   B2
      p2
    ...


Is there a solution with svndumpfilter?

I do not success making the list of all branches and tags simply



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

RE: How to split a project with trunk, branches and tags strutures?

Posted by "Bicking, David (HHoldings, IT)" <Da...@thehartford.com>.
> -----Original Message-----
> From: Pierre Couderc [mailto:pierre@couderc.eu] 
> Sent: Tuesday, March 25, 2008 12:11 PM
> 
> Is there simple solution to split a project using the 
> standard structure
>    with trunk, branches and tags:
> my p1 and p2 project are in a standard struture :
> 
> trunk
>    p1
>    p2
> branch
>    B1
>       p1
>       p2
>    B2
>       p1
>       p2
>     ...
> -I omit tags to make it  simple)
> I want to create 2 repositories one for p1 and one for p2 on 
> another server :
> trunk
>    p1
> branch
>    B1
>       p1
>    B2
>       p1
> ...
> and on another server :
> trunk
>    p2
> branch
>    B1
>       p2
>    B2
>       p2
>     ...
> 
> 
> Is there a solution with svndumpfilter?
> 
> I do not success making the list of all branches and tags simply



Since I've not seen a response to this yet, I'll throw in what I know.
Your structure does not lend itself to extraction because an individual
project is divided into several separate trees.  In the future a
structure like the next one will make it easier:

Proj1
	trunk
	branches
	tags

With this, you can extract "Proj1" with the standard svndumpfilter and
drop it into a new repository.

Given your current state, you need to specify multiple paths to "keep"
when you run the dump through the filter.  That would be the "include"
argument.  So, in your case you might want to "include" (not valid
syntax) /trunk/p1; /branch/B1/p1; /branch/B2/p1.

However, if you copied anything into those paths from elsewhere, you're
stuck.  There is another tool that helps with that scenario.  Take a
look at
http://www.dehora.net/journal/2007/04/patched_svndumpfilter2.html.
There's also an svndumpfilter3 (see
http://svn.haxx.se/users/archive-2006-04/1137.shtml).

Good luck!
--
David


*************************************************************************
This communication, including attachments, is
for the exclusive use of addressee and may contain proprietary,
confidential and/or privileged information.  If you are not the intended
recipient, any use, copying, disclosure, dissemination or distribution is
strictly prohibited.  If you are not the intended recipient, please notify
the sender immediately by return e-mail, delete this communication and
destroy all copies.
*************************************************************************


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