subversion-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Schmidt <subversion-20...@ryandesign.com>
Subject Re: How to cut and graft?
Date Fri, 30 Jul 2010 01:50:16 GMT

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.


Mime
View raw message