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

Re: How to cut and graft?

From: Ryan Schmidt <subversion-2010b_at_ryandesign.com>
Date: Thu, 29 Jul 2010 20:50:16 -0500

On Jul 29, 2010, at 20:47, Chris Velevitch wrote:

> In a project, we originally created a branch because we need to create
> a system which was basically a variation of the original project and
> share the common unchanged code with the trunk.
>
> Since then, the trunk has now gone into end of life and so I want cut
> the trunk off at the branch point and cut and graft the branch into
> the trunk without losing any of the version history that has occurred
> after the branch and keep it's linage intact.
>
> How do I do that?

I'm not familiar with your "cut" and "graft" terminology, but I think what you're asking is accomplished by doing:

svn rm $URL/trunk -m "Delete old trunk"

svn mv $URL/branches/thebranch $URL/trunk -m "Make branch thebranch the new trunk"

The history of branch thebranch is of course preserved.
Received on 2010-07-30 03:51:01 CEST

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.