What should I do with the svn branch after I round it in the trunk?

I needed to create some functionality on a branch, so I created it, and now I have combined it back into the trunk.

The question is, what should I do with this branch? What kind of wisdom? Delete it from repositories?

It seems untidy and unnecessary to just leave it there.

+6
branch merge svn
source share
5 answers

Well, I understand where everyone is coming from, but decided that the branch could disappear. I just do not want to see many inactive branches.

Having said that, I created a branch tag.

Here is what I found to support my opinion:

You do not need to delete the branch, but over time the area of โ€‹โ€‹your branches will be cluttered with your repository, and in any case, if they are not actively working on the branches, they simply take up space and add confusion to later. Keeping your branches limited to things youre actively working on is just a good habit to join, just as you should make sure that your code base remains neat and is not filled with old code bit comments.

...

Do not be afraid of it. You can still get to the log files for the branches and select the previous version (nothing before the delete action) [.]

Source: http://stevesmithblog.com/blog/simple-branching-and-merging-with-svn/

+2
source share

Usually you just leave it there. This is useful for viewing the repository if you want to see specific commits made during this branch in the future (so you do not need to search and view the revision). If you no longer need this, I would recommend marking it up anyway before deleting it.

+2
source share

It serves a historical purpose; hold it for that reason. I had to visit the history of branches to see what was changed, both for one file and for the entire project. Having a historical record of changes that we hope will contain comments along with committing can be a valuable resource for future developers (and this future developer may be you).

0
source share

I always leave them; thus, I am sure that I will never reuse the branch name, and any http links to the branch (in the documentation or reports) will not be violated.

If it really hurts you, because it was only a branch with functions, you can delete it if you combined everything with the trunk; you probably never bother to look at him again. But remember that he does nothing, just sits there; he will always be in history, whether he will pretend to be on his head or not. You will not โ€œcleanโ€ anything by deleting it, you will actually just add the unnecessary revision to the repository.

0
source share

All Articles