[cvsnt] Re: Merging a repository from Branch to Trunk
Tony Hoyle
tmh at nodomain.org
Wed Sep 1 10:13:38 BST 2004
Herb Croken wrote:
> Hi all,
> To make a short story long, for legal reasons we branched our entire
> repository (a year ago, so lots of changes) and have been developing in that
> branch ever since. Now we want to merge the entire branch to the trunk of a
> new repository (on a new server as well), without having to resolve
> conflicts, differences etc. Any hints on the best\easiest way to do this?
>
> I realize that we will be losing all history in this process, and will be
> going to v1.1 for all files. We will create a second repository on the new
> server also, which will be a snapshot of the current repository (the branch)
> prior to the move.
>
Use two -j options:
cvs update -A
cvs update -j branch -j HEAD
This will merge all the differences between the branch and HEAD,
avoiding conflicts. There's no need to lose history this way.
If you really want to start a new repository do an export followed by
import on the new server.
Tony
More information about the cvsnt
mailing list