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

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

From: Bicking, David (HHoldings, IT) <David.Bicking_at_thehartford.com>
Date: Thu, 27 Mar 2008 15:06:55 -0400

> -----Original Message-----
> From: Pierre Couderc [mailto:pierre_at_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_at_subversion.tigris.org
For additional commands, e-mail: users-help_at_subversion.tigris.org
Received on 2008-03-27 20:07:48 CET

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.