[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Best way to swap a branch with HEAD?

From: Jim Hyslop
Subject: Re: Best way to swap a branch with HEAD?
Date: Mon, 19 Dec 2005 20:32:16 -0500
User-agent: Mozilla Thunderbird 1.0.6 (Windows/20050716)

Hash: SHA1

Doug Lee wrote:
> This is accademic because I already did what I describe below, but I
> wonder if there would have been a better solution.
> I had this long branch, which I'll call xp15 (a Windows XP branch amid
> NT branches actually), which was production-level code.  On the trunk,
> I had a lot of experimental code which was supposed to go production
> but never did.  Having learned since creating that arrangement the
> wisdom of doing things the other way (branch the experiments, leave
> the trunk a production source), I wanted to make HEAD again be the
> main development--in this case, continue from the tip of the xp15
> branch; and I wanted to move all the experimental stuff off onto its
> own branch, which I'll call exp here.

> I know no better way to handle this, but I thought I'd see if someone
> else does.

cvs rtag EXPERIMENTAL module

cvs co module
cd module
cvs update -jHEAD -jxp15
cvs ci

cvs update -r xp15
cvs update -jxp15 -jEXPERIMENTAL
cvs ci


See FAQ 7.1
for an explanation how this works.

- --
Jim Hyslop
Dreampossible: Better software. Simply.
                 Consulting * Mentoring * Training in
    C/C++ * OOD * SW Development & Practices * Version Management
Version: GnuPG v1.4.2 (MingW32)
Comment: Using GnuPG with Thunderbird -


reply via email to

[Prev in Thread] Current Thread [Next in Thread]