Jazz Forum Welcome to the Jazz Community Forum Connect and collaborate with IBM Engineering experts and users

What is the right way to branch and then merge?

I have a existing project in which we'd like to start doing some side work, some of which would then need to go back into the main 'release' project.   Initially l attempted this by making a copy of the stream containing the project, but I've been told this is not the way to go.  What is the recommended way to branch and then merge a project?  Specific instructions for Eclipse with RTC 3013_p2 plugins would be most appreciated?  Thanks.

P.S - I've seen https://jazz.net/forum/questions/136202/how-to-versionbranch-a-release, but can you provide more specifics?  I.e. what views/menu options to use?  Thanks.

0 votes



One answer

Permanent link
This should work on RTC 3.0.1.  Later versions of RTC have stream-to-stream operations.

1. Create a stream which will contain all the development for the side-work.  This stream will best be created from a snapshot of your main release stream as suggested by your linked forum post.

To create a snapshot, go to your main release stream in Team Artifacts View->Project->Source Control, right-click, and select New->Snapshot. 

Once your snapshot is created, you can use it to create your side-work stream by Showing the Snapshot (right click on the stream in the Team Artifacts view, select Show->Snapshots).  In the Search view, select the snapshot, right-click, and select New->Stream from Snapshot.

2. Develop on your side-work stream.

3. When you are ready to merge back to your main release stream, take a repository workspace that is tied to your side-work stream, first making sure that all change sets have been accepted, and change its flow target by going to the Pending Changes view, right-clicking on the repository workspace, and selecting Change Flow Target.  Once the repository workspace is changed, merge all the incoming and outgoing change sets and deliver the side work.

Hope this helps.

0 votes

Your answer

Register or log in to post your answer.

Dashboards and work items are no longer publicly available, so some links may be invalid. We now provide similar information through other means. Learn more here.

Search context
Follow this question

By Email: 

Once you sign in you will be able to subscribe for any updates here.

By RSS:

Answers
Answers and Comments
Question details
× 12,047

Question asked: Jan 08 '15, 11:20 a.m.

Question was seen: 4,352 times

Last updated: Jan 08 '15, 1:03 p.m.

Confirmation Cancel Confirm