Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

After merging a branch to trunk in subsvn, will you delete the branch?

Tags:

I am wondering if i should delete the merged branch.

like image 925
Benny Avatar asked Oct 09 '09 06:10

Benny


People also ask

Does merging branch delete branch?

The more the branches and master diverge away from each other the farther away their “common ancestor” commit becomes. When you're done with a branch and it has been merged into master, delete it. A new branch can be made off of the most recent commit on the master branch.

How do I delete a branch in svn repository?

For those using TortoiseSVN, you can accomplish this by using the Repository Browser (it's labeled "Repo-browser" in the context menu.) Find the branch folder you want to delete, right-click it, and select "Delete." Enter your commit message, and you're done.


2 Answers

If you merge a branch into trunk using "svn merge --reintegrate", you are recommended to delete the branch. If you want to do further development in that branch, you should "re-branch", effectively create a new branch with the same name, but rooted at the same revision as you merged the branch into trunk.

Read more about svn merge --reintegrate.

EDIT: updated link

like image 101
JesperE Avatar answered Oct 04 '22 02:10

JesperE


It depends on what you created the branch for in the first place. A branch is usually used for maintaining a released or soon-to-be-released version of software, so in general, no, you would not delete it. Even if you do, it is still there taking up space (its just no longer visible in the current version), so unless you have a great need to delete it, I would keep it around.

like image 33
SingleShot Avatar answered Oct 04 '22 04:10

SingleShot