info-cvs
[Top][All Lists]
Advanced

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

Re: changing trunk commit to branch


From: Larry Jones
Subject: Re: changing trunk commit to branch
Date: Mon, 24 Oct 2005 19:36:55 -0400 (EDT)

Jason Viers writes:
> 
> So, the question:  is there an easy way to make a branch and take a 
> commit on the trunk and "move" it to a branch?

Sure: back out the change, create the branch, then redo the change on
the branch.  For example, assuming the revision in question in 1.27:

        cvs up -j1.27 -j1.26 file   # back out unwanted change
        cvs ci                      # commit it
        cvs tag -b newbranch        # create new branch
        cvs up -r newbranch         # move to it
        cvs up -j1.26 -j1.27 file   # redo change on branch
        cvs ci                      # commit it

-Larry Jones

I just can't identify with that kind of work ethic. -- Calvin




reply via email to

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