Click here to Skip to main content
15,886,518 members
Articles / All Topics

Five Steps to SVN Merging

Rate me:
Please Sign up or sign in to vote.
4.00/5 (6 votes)
11 Jan 2011CDDL2 min read 40.5K   8   4
Here are 5 steps to SVN merging

Few Points to Ponder!

  • Always start on Green Light! i.e., Start merging when both Trunk and Branch are fully committed and they are showing green color.
  • Merging always takes place within a working copy, i.e., in trunk.    
  • In every commit, do not forget to add comment in the comment box. Mind it, this is important!

Use Case for Merging

  • We have a main trunk
  • We have taken a branch named “CallForStandardFeedBack” branch.
  • After taking this branch, codes in both trunk and branch are modified by concerned developers.
  • Now we want to merge “CallForStandardFeedback” branch back to trunk and we have lots of changes both in trunk and merge.

Merging Step: 1

  • All files are committed and we have green tick mark in our folder. Now we can start merging.

Merging Step: 2

  • Right click on Trunk go to TortoiseSVN->Merge and Click Merge.

Merging Step: 3

  • Select “Merge a range of revisions” and click next.

Merging Step 4

  • Select the value as appropriate in the picture below:

Explaining ??

  • Range Of Revision: Range of revision is actually all those range of changes that we want to merge with trunk. As we are merging a full branch with trunk, so we will select all the ranges like below:

  • Reverse Merge: Reverse Merge is basically to decouple the changes that were committed with trunk before while merging one particular branch with trunk. Say for example, we have implemented one menu in one branch and merged it with trunk. After a few days, it is needed to rollback every code related with that branch. In that case, we will use reverse Merge.

Merge Step 5

  • Use the default value in this form and click merge to get the job done!

After merging, you will get the result like below. Now handle only conflicted files and do an integration test!

Happy merging!

License

This article, along with any associated source code and files, is licensed under The Common Development and Distribution License (CDDL)


Written By
Software Developer (Senior) Vizrt Bangladesh
Bangladesh Bangladesh
I am truly versatile and 360 degree Engineer having wide range of development experience in .NET and Java Platform. I am also proficient in system level programming in C++. To me technology is not at all a problem, it’s the client requirement that matters! That is I am ready and comfortable to use any technology to make the business of my client a success.

In my five years of experience I have the opportunities to work for fortune 500 companies of US and many renowned clients from Europe.

My Linkedin Profile: http://bd.linkedin.com/in/mahmudazad

Comments and Discussions

 
GeneralMissing steps Pin
Bernhard Hiller19-Jan-11 23:40
Bernhard Hiller19-Jan-11 23:40 
GeneralRe: Missing steps Pin
Mahmudul Haque Azad20-Jan-11 15:42
Mahmudul Haque Azad20-Jan-11 15:42 
Generalnic Pin
Pranay Rana11-Jan-11 20:29
professionalPranay Rana11-Jan-11 20:29 
GeneralMy vote of 1 Pin
CARPETBURNER7-Jan-10 4:20
CARPETBURNER7-Jan-10 4:20 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.