elSnape
elSnape

Reputation: 302

In SVN, Is it OK to branch from a tag?

Simple question. Is this considered bad SVN practice? What are the negative consequences of branching from a tag?

Upvotes: 4

Views: 231

Answers (3)

manojlds
manojlds

Reputation: 301037

First off, technically, it is possible and ok to do it.

It is going to depend on how you treat the tag. In general practice, tags are like pointers to a particular revision in trunk or branch that usually indicate, say, a release. So branching from tags is conceptually not an ok thing to do. What you should be doing is branch from the revision that the tag is pointing to and treat it as a branch where you are working on.

Upvotes: 2

Nicola Musatti
Nicola Musatti

Reputation: 18218

From a technical point of view there is no problem at all. It really depends on your development process. I could envisage proceeding as you describe in a context where in general you only perform releases off trunk, and only under exceptional conditions you provide patches to a previous release. In this case creating a new branch for each release would just clutter your setup and it might be more reasonable to create such a branch only when it's needed.

Upvotes: 1

Deep Kapadia
Deep Kapadia

Reputation: 1458

None that I am aware of. I think it is a perfectly okay thing to do. You do need to make sure you understand your needs for branching and ensure that you have a outlined a processes/timeline to merge changes back (if that is your goal). This post may help.

Do you continue development in a branch or in the trunk?

Upvotes: 3

Related Questions